Question: Develop a State Table with all Inputs and Outputs for a vending machine that sales Cookies, Cola. Assuming ( 1 ) The machine accepts Nickel,

Develop a State Table with all Inputs and Outputs for a vending machine that sales "Cookies", "Cola".
Assuming
(1) The machine accepts Nickel, Dime and Quarter coins.
(2) A bag of "Cookies" is 45 cents
(3) A bottle of "Cola" is 35 cents
(4) The machine also has a "Refund" button other than the "Cookies" and "Cola" buttons
(5) The vending machine will stop accepting additional coins if the total accumulated deposit, including the newly inserted coin, exceeds 80 cents.
[Please show steps in your solution. Just giving a final number will not receive full credit.]
Develop a State Table with all Inputs and Outputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!