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 chocae your preferred cake: 1-tlew York Cheese 2-Black Foreat Cheese 3-Red Velvet 4-Fruitilieioua Enter your choice of cake 2 Enter the quantity of cake Current total price : BM 260.00 Do you want to add your order?: "Y'/ 'N': 1 MELCOME TO KEDAI KEK TERSAYANG Please chocse your preferred cake: 1-ew York Cheese 2-Black Foreat Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 1 Enter the quantity of cake : 1 Current total price : BM 348.00 Do you want to add your order?: "Y'/ 'N': N Grand total : M 348.00

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
Question

how to solve in net beans ide and how to do the layouts

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
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
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr