You need to observe that this project has to include array, repetition, input validation and method. The submission has to be done through your OL portal and you also need to present your project through online presentation. You should request a presentation date/time from your lecturer. You are required to use GUI as your user interface. This is a guide line (without GUI. 20 KEDAI KEK TERS Please choose your preferred ecake: 1-ew Tork Chese 2-Black Foreat Cheese 3-ed Velvet 4-Fruitilicious Enter your choice of cake2 Enter the quantity of cake 2 Current total price 260.00 De you want to add your ordert / N: I MELCOME TO KEDAI KEE TERSATANG .................... Please choose your preferred cake: 1-ew Tork Cheese 2-Black Forest Cheese 3-ed Velvet 4-Fruitilieious Enter your choice of cake: 1 Enter the quantity of cake Current total price : 348.00 De you want te add your eedert: T/ **: Grand total : N 348.00 Please enter amount tendered: 400 Tour Bill: Tetal price 348.00 Amount Tendered Balance 400.00 52.00 Note: you have to change this form of inputjoutput by using lava GU] You should start with a menu frame form/layout your main layout), where you can ask user to enter which function he/she wants to use. From that main menu, it will open other layout based on what function user choose. The layout design has to be neat. Page |2

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

HOW TO SOLVE IN NET BEANS AND DO JFRAME

 

Function 2: "Kedai Kek Tersayang"
You are required to develop a program for "Kedai Kek Tersayang" that will calculate the
total price of cake that need to be paid by customers. The price of cake depends on the
flavor of cake as the following example:
Price (RM)
Cakes
New York Cheese
Black Forest Cheese
Red Velvet
Fruitilicious
88.00
65.00
130.00
95.00
You should add the list of cakes to 10 options (10 type of cakes) with different prices. Store
all the cakes and their prices in arrays. You can directly initialize the cakes and its prices
directly to an array (you don't have to get/read the list from user).
First, the program will display a list of the cakes and their prices. You should put the list in a
table (you are required to retrieve them from the array). Then it requests user to choose
the preferred cake and its quantity. Next the price of the cake is calculated and displayed.
After that, the user is given option to add order. That mean the operations need to be done
repeatedly. If the user chooses to add order, the above operation is repeated. This will be
repeated until user finishes ordering. You can use another button to indicate that user has
already completed the order and want to pay the total price. Then the program will display
the grand total, prompt for the amount tendered and calculate the balance. At the end, the
bill will be displayed. All of the amount displayed in this program must be formatted to two
decimal points.
Page | 1
Transcribed Image Text:Function 2: "Kedai Kek Tersayang" You are required to develop a program for "Kedai Kek Tersayang" that will calculate the total price of cake that need to be paid by customers. The price of cake depends on the flavor of cake as the following example: Price (RM) Cakes New York Cheese Black Forest Cheese Red Velvet Fruitilicious 88.00 65.00 130.00 95.00 You should add the list of cakes to 10 options (10 type of cakes) with different prices. Store all the cakes and their prices in arrays. You can directly initialize the cakes and its prices directly to an array (you don't have to get/read the list from user). First, the program will display a list of the cakes and their prices. You should put the list in a table (you are required to retrieve them from the array). Then it requests user to choose the preferred cake and its quantity. Next the price of the cake is calculated and displayed. After that, the user is given option to add order. That mean the operations need to be done repeatedly. If the user chooses to add order, the above operation is repeated. This will be repeated until user finishes ordering. You can use another button to indicate that user has already completed the order and want to pay the total price. Then the program will display the grand total, prompt for the amount tendered and calculate the balance. At the end, the bill will be displayed. All of the amount displayed in this program must be formatted to two decimal points. Page | 1
You need to observe that this project has to include array, repetition, input validation and
method. The submission has to be done through your OL portal and you also need to
present your project through online presentation. You should request a presentation
date/time from your lecturer.
You are required to use GUI as your user interface. This is a guide line (without GUI).
MELCOME TO KEDAI KEK TERSAYANG
***.....
........
Please choae your preferred cake:
1-lew York Cheese
2-Black Foreat Cheese
3-Red Velvet
4-Fruitilicioua
Enter your choice of cake: 3
Enter the quantity of cake 2
Current total price : BM 260.00
Do you want to add your order?: "Y/ 'N': Y
....
MELCOME TO KEDAI KEK TERSAYANG
Please choae your preferred cake:
1-ew York Cheese
2-Black Foreat Cheee
3-Red Velvet
4-Fruitilicious
Enter your choice of eake: 1
Enter the quantity of cake T1
Current total price i RM 348.00
Do you want to add your order?: "Y'/ 'N': M
Grand total : N 348.00
Please enter amount tendered: M 400
Your Bill:
Total price
JM 348.00
Amount Tendered
м 400.00
52.00
Balance
Note: you have to change this form of input/output by using Java GUI)
You should start with a menu jframe form/layout (your main layout), where you can ask
user to enter which function he/she wants to use. From that main menu, it will open other
layout based on what function user choose.
The layout design has to be neat.
Page |2
Transcribed Image Text:You need to observe that this project has to include array, repetition, input validation and method. The submission has to be done through your OL portal and you also need to present your project through online presentation. You should request a presentation date/time from your lecturer. You are required to use GUI as your user interface. This is a guide line (without GUI). MELCOME TO KEDAI KEK TERSAYANG ***..... ........ Please choae your preferred cake: 1-lew York Cheese 2-Black Foreat Cheese 3-Red Velvet 4-Fruitilicioua Enter your choice of cake: 3 Enter the quantity of cake 2 Current total price : BM 260.00 Do you want to add your order?: "Y/ 'N': Y .... MELCOME TO KEDAI KEK TERSAYANG Please choae your preferred cake: 1-ew York Cheese 2-Black Foreat Cheee 3-Red Velvet 4-Fruitilicious Enter your choice of eake: 1 Enter the quantity of cake T1 Current total price i RM 348.00 Do you want to add your order?: "Y'/ 'N': M Grand total : N 348.00 Please enter amount tendered: M 400 Your Bill: Total price JM 348.00 Amount Tendered м 400.00 52.00 Balance Note: you have to change this form of input/output by using Java GUI) You should start with a menu jframe form/layout (your main layout), where you can ask user to enter which function he/she wants to use. From that main menu, it will open other layout based on what function user choose. The layout design has to be neat. Page |2
Expert Solution
steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY