Vending Machine Project

 

Your project will be a vending machine.  Your machine will ask the user to pick a choice of what they want to buy, input the money and return the change to the user.

Your task is to complete the sections of the code that are marked

You already did an assignment to figure out the correct amount of change. However, the problem here is that you want to give back the correct change with the least amount of coins given what the vending machine has.

VendingMachine2.java

Example