Click here to Skip to main content
15,569,840 members
Please Sign up or sign in to vote.
1.43/5 (4 votes)
See more:
A local retail shop-owner has been inspired to have a robot that mimics the process of selling products in his shop. The products are placed on the shelves by the wall. Basically, when a customer requests for a product, the owner checks if such product is available in-stock. If it is, he walks over to collect it and tells the price. He then receives money from the customer, then walks over to the till, where he punches in the amount to be paid. The till then computes the change if any and opens the tray. The owner then gives change to the customer.

Following the 5 steps in designing a Finite State Machine, design a robot with the necessary functionalities, and then code it in C++. You may include as much functionality as you see fit.
Posted
Comments
Matthew Faithfull 15-Jun-13 6:59am    
Nice assignment. Now go do it using what you have learned. No one here will do it for you.
If you get stuck on any specific part come back and ask a programming question related to that.
CPallini 15-Jun-13 9:04am    
Well, what to say? Good luck with your assignment!
[no name] 15-Jun-13 9:08am    
It's your homework don't you think that you should do it?

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, or learn the Magic Words: "Do you want fries with that?"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900