Question: (C++) Need major help in soda machine code. It must follow the diagram exactly no more no less. (Crucial) If user puts in money and

(C++) Need major help in soda machine code. It must follow the diagram exactly no more no less. (Crucial) If user puts in money and then decides to return, code must give back money. (I couldnt get this part) . Their are two drink options and each cost 0.75$. If possible, make options to enter like a real machine. Quarters, $1,$5, or just simply type in money. Thank you. (4 circles in diagram crucial, no more no less) Please.  (C++) Need major help in soda machine code. It must follow
the diagram exactly no more no less. (Crucial) If user puts in

Write a program that uses a finite state-machine to simulate a soft drink vending machine. It should implement the state-diagram from the class lecture, and use a switch-statement. You should provide two drink choices, and keep track of inventory. Use an enum for the states

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!