Question: P 1 : The machine will dispense drinks gatorade, red bull, coke, diet coke P 2 : Prices - Gatorade $ 2 , RedBull$ 2
P: The machine will dispense drinks gatorade, red bull, coke, diet coke
P: PricesGatorade $ RedBull$ cokeldiet $
P: The vending machine accepts only quarters and dollar bills. If the user enters enough money, the item selected will dispense. If canceled, any money inserted money is returned. If not enough money is inserted, they can add more or cancel.
P: The inputs arei quarters, dollar bills, cancel button, vend but ton.
P: The outputs are: $$$ coke, diet coke, $$$ Gatorade, Red Bull.
P: State Table
State Diagram
Can you finish the State Table and create a State Diagram on paper.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
