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
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. ... Use an Enema for the state and the price of each drink is only 75 cent but you can use an integer in order to be easier (int 75). Also, we should have 4 states here for this code, which are " enter, selection, inventory, return Thank you in advance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
