Question: Using Java create a vending machine. Make sure to make a main menu, and that all steps return back to the original loop. Use cases,

Using Java create a vending machine. Make sure to make a main menu, and that all steps return back to the original loop.

Use cases, switches, loops, and booleans. DO NOT use an array list.

Please use Make sure it can do the following:

- Allows the user to add money to increase the amount of money added - Display the amount of money entered into the machine by the user - Has 5 items displayed with their prices - Allows the user to pay with 1, 5, 10, and 20 dollars - Allows the user to request dispensing of the item - If there isnt enough money the machine will print error: need more money - If there is too much money it will print too much money - When the user has chosen the item they want, the machine will print vending your item and then print any exceeding money - When the machine is done vending it will reset to 0 (the money that was previously added will be gone) - Allow the user to cancel their transaction and refund any money they may have input into the machine

Thank you!!

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 Databases Questions!