By PAUL WISEMAN and BERNARD CONDONWASHINGTON (AP) â¿¿ They seem right out of a Hollywood fantasy, and they are: Cars that drive themselves have appeared in movies like "I, Robot" and the television show "Knight Rider." Now, three years after Google invented one, automated cars could be on their way to a freeway near you. In the U.S., California and other states are rewriting the rules of the road to make way for driverless cars. Just one problem: What happens to the millions of people who make a living driving cars and trucks â¿¿ jobs that always have seemed sheltered from the onslaught of technology? "All those jobs are going to disappear in the next 25 years," predicts Moshe Vardi, a computer scientist at Rice University in Houston. "Driving by people will look quaint; it will look like a horse and buggy." If automation can unseat bus drivers, urban deliverymen, long-haul truckers, even cabbies, is any job safe? Vardi poses an equally scary question: "Are we prepared for an economy in which 50 percent of people aren't working?" ___ EDITOR'S NOTE: Last in a three-part series on the loss of middle-class jobs in the wake of the Great Recession, and the role of technology. ___ An Associated Press analysis of employment data from 20 countries found that millions of midskill, midpay jobs already have disappeared over the past five years, and they are the jobs that form the backbone of the middle class in developed countries. That experience has left a growing number of technologists and economists wondering what lies ahead. Will middle-class jobs return when the global economy recovers, or are they lost forever because of the advance of technology? The answer may not be known for years, perhaps decades. Experts argue among themselves whether the job market will recover, muddle along or get much worse.