From the end of World War Two, computers have evolved from big room sized boxes to smart phones that can fit into your pocket. Computer part and manufacturing is getting cheaper and cheaper. One thing that is evolving with them is Artificial Intelligence, called "AI". AI is human made software that is intelligent enough to think on it's own and interact with people and other AIs. Robots can also be programmed with AI systems.
There will be robots that look like cars, airplanes and ships. They will operate and transport us on their own. Not only the transportation will become robots but whole factories also. People will not do physical work anymore. They will become that smart, that they will build new facilities whenever there is a need for that. New supermarkets, skyscrapers and schools will emerge in few hours.
One of the good things is that probably, there will be no wars anymore. Robots will not let us do that. They are rational beings and the war is everything but rational. Security robots will be always watching us and controlling our behavior.
If you think that the year of 2040 is to early for that, you are making a BIG mistake! Even now, there are self driven cars, human like robots, factory robots. You can not imagine what all can be invented in only ten years from now.
The future is interesting, but very scary. Maybe that much scary, that some of us don't even want to speak or think about it. The only thing that I want to know is "Will we be safe with them around?", not from wars and illnesses, but from them...