Question: Question Completion Status: Write a program for a vending machine which shall dispense items such as snacks, drinks, candy and, books, when a customer inserts
Question Completion Status: Write a program for a vending machine which shall dispense items such as snacks, drinks, candy and, books, when a customer inserts coins inside the machine, a. Create a JFrame Form "Vending Form", that has 2 labels, four check boxes, two buttons, and two text fields. Your design shall look like the following: (1 point) Money Amount Change Money Amount Change PEPSI (1.3) PEPSI (1.5 cm SNICKERS (2) SNICKERS (2.0 hm) PRINGLES CHIPS (1.0) WATER (1.6) WATER (10) PRINGLES CHIPS (40) Buy b. The customer can select the items he wants to buy, then inserts the money amount in the 1st text field then press the button "Buy" After that the program shall display the change in the 2nd text field, (3 points) c. The button "Clear" will clear all text fields and deselect the selected check boxes (2 point) Submit the code inside the ho buttons Buy and Clear) only Do not submit the JFrame design and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
