Question: Please dont use vector/ pair type Write a code in C++ that uses a finite state machine to stimulate a soft drink vending machine. You
Please dont use vector/ pair type 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. middot middot middot Use an Unum 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
