Question: uestion Two: Using GUL, create a java program that will solve the following problem. You are asked to write a program for a y snacks,
uestion Two: Using GUL, create a java program that will solve the following problem. You are asked to write a program for a y snacks, drinks, candy and, books to a customers, when he/she the customer inserts coins inside the machine. which shall dispenses items such as Create a JFrame Form "VendingForm", that has 2 labels, four check boxes, two buttons, and two text fields. Your design shall look like the following: (1 point) a) Moncy Amount Change Change PEPSI (1.5 dhms) SNICKERS (2.0 dhns) z wATER ( 1.0 dms) PRINGLE CHIPS (4,0 dhrns) WATER (1.0 dhms) EPRINGLES CHIPS (4.0 dhms) the 1st text fiel ) The user can select one or more items from the list, then inserts the money amount in then press the button "Buy". After that the program shall display the change in the 2nd text field. (3 points) The button "Clear" will clear all text fields and deselect the selected checek boxes. (l point) When the customer inserts money amount less than the selected item/s total price. Display in a message box the error message " The Money Amount is less than the selected item/s to Price", (1 point) rivate Error The Money Amount is less than the selected item/s total Price! OK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
