Write a code in c that uses a finite state machine to


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 Enum 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"

1242_Finite State_Machine.jpg

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a code in c that uses a finite state machine to
Reference No:- TGS02215482

Expected delivery within 24 Hours