Question: RESTAURANT MASLAN POI Develop a GUI in java for the restaurant. There should be 10 types of food and drink included as below Burger RM

RESTAURANT MASLAN POI

Develop a GUI in java for the restaurant.

There should be 10 types of food and drink included as below

Burger RM 6.00 Banana Milkshake RM 5.00

Fried Rice RM 5.50 Strawberry Milkshake RM 6.00

Chicken Chop RM12.50 Hot Chocolate RM 8.00

Lamb Chop RM16.50 Iced Tea RM 3.50

Pizza RM 20.00 Mineral Water RM 2.00

All this items and prices should be stored in ARRAY. You can initialize the items and its prices

directly from the array.

First

The items and the prices are retrieved from the array and displayed in the table. User enters the item number and the quantity of the item. Total price is calculated and displayed.

Second

The user is given the choice to add order. If Add button is pressed, the operation in the above is REPEATED. If the user press Finish button, the total amount is shown and user required to enter tendered amount to pay.

Third

A new form appears showing the details of the transaction. The idea is the form looks like a resit of the transaction. The details include all the items and quantity added, grand total, amount tendered and balance amount after transaction.

The calculations involved should be done in separate METHOD. The method should be called in Add and Finish button respectively. Two calculations, (item*quantity=amount), (tendered amount-amount = balance amount)

If amount entered to tender is below final amount, error message box should appear.

The main goal is to complete ARRAY, REPITION and METHOD.

Note : Please design the form in Netbeans. DO NOT CREATE GUI THROUGH CODE. Create all the components and design in the form. This will be convenient as I can make amendments.

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!