Design an applet in java the applet should be a snack


Please read everything below and stop copying the same incorrect code from other people. Everyone keeps copying and pasting the drink machine code but clearly did not read the instructions.

Design an applet in Java. The applet should be a snack machine. The snack machine should dispense 3 varieties of chips $0.65, 5 varieties of drinks $1.25 and 4 varieties of cookies/crackers $0.75.

When the applet starts, the snack machine should have a supply of 20 of the 3 different types of chips. 20 of the 5 differnt types of drinks. And 20 of each of the 4 varieties of cookies.

The applet should have a text field where the user can enter the amount of money he or she is giving the machine.

The user can then click on a button to select the products to dispense. The applet should also display the amount of change it is giving back to the user.

The applet should keep track of its inventory of products and inform the user if he or she has selected items or item is out of stock.

Be sure to handle operator errors such as selecting a product without entering in money or selecting a product with incorrect amount of money.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Design an applet in java the applet should be a snack
Reference No:- TGS02893460

Expected delivery within 24 Hours