Years ago, I read this fictional story by Marshall Brain called Manna. It talked about the robotic takeover of a fast food chain by an intelligent system.
Marshall Brain, as you may know, is the founder of HowStuffWorks.com and a well known speaker, teacher, writer etc. Although he wrote Manna as fiction, he was so certain that it was the way of our future that he actually patented the system he described (if memory serves). Of course, he was right. I just got this link from a friend about how fulfillment centers work — how do you get the same-day or next day delivery on all those mountains of things that you order from the Internet? Here is how. It is astonishing how similar this scenario is to what Marshall Brain described in Manna.