Question: Write a code in C++ that uses a finite state_machine to stimulate a soft drink vending machine. You need to use the state_diagram in picture
Write a code in C++ that uses a finite state_machine to stimulate a soft drink vending machine. You need to use the state_diagram in picture and also you should use a switch _statement. You should provide 2 drink choice and 2 drinks from each one(4 total) and keep track of inventory. return button Start Enter S total soda cost total sodaCost (issue change) return button Wait For selection Selection sold out of selection Return Total all sold out Check Inventory dispense drink
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
