Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are required to develop a Java project with NetBeans JFrame GUI facilities. This project contains two functions: 1. Water Tariff 2. Lily Bakery Shop
You are required to develop a Java project with NetBeans JFrame GUI facilities. This project contains two functions: 1. Water Tariff 2. Lily Bakery Shop Function 1: Water Tariff For the first function it is almost similar as Assignment I. Except, this time you are required to develop this with GUI Java framework. You should refer back to the assignment question for the formula/calculation and rules. All the calculations have to be done in new methods (you have to apply the method lesson here; it might involves passing parameters and return value). All inputs and output should be programmed inside the respective button methods (where they will call the respective methods for the calculations). Function 2: Lily Bakery Shop You are required to develop a program for Lily Bakery 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: Cakes New York Cheese Black Forest Cheese Red Velvet Fruitilicious Price (RM) 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 (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 and method. The submission has to be done through softcopy and you also need to present your project through online presentation. You should request a presentation date/time with your lecturer. You are required to use GUI as your user interface. This is a guide line (without GUI). You need to observe that this project has to include array, repetition and method. The submission has to be done through softcopy and you also need to present your project through online presentation. You should request a presentation date/time with your lecturer You are required to use GUI as your user interface. This is a guide line (without GUI). ***** WELCOME TO LILY BAKERY ****** Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 3 Enter the quantity of cake : 2 Current total price : RM 260.00 Do you want to add your order?: 'Y' / 'N': Y WELCOME TO LILY BAKERY Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 1 Enter the quantity of cake : 1 OL arch WELCOME TO LILY BAKERY ***** Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 3 Enter the quantity of cake : 2 Current total price : RM 260.00 Do you want to add your order?: 'Y' / 'N': Y WELCOME TO LILY BAKERY Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 1 Enter the quantity of cake : 1 Current total price : RM 348.00 Do you want to add your order?: Y' / 'N': N Grand total : RM 348.00 Please enter amount tendered: RM 400 Your Bill: Total price RM 348.00 Tumount Tendered R. 400.00 Balance RM 52.00 IN to vau have to change this form of innut loutnut hy using lava G N Get Homework Help With Chegg X Microsoft Word - Assignment U C Get Homework Help With Chego X + Downloads/FinalProject%20STIA1014%20A201.pdf WELCOME TO LILY BAKERY ** Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 3 Enter the quantity of cake : 2 Current total price : RM 260.00 Do you want to add your order?: "Y! / N': Y WELCOME TO LILY BAKERY Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 1 Enter the quantity of cake : 1 Current total price : RM 348.00 Do you want to add your order?: 'Y! / N': N Grand total : RM 348.00 Please enter amount tendered: RM 400 Your Bill: Total price RM 348.00 Amount Tendered RM 400.00 Balance RM 52.00 INote: vou have to change this form of input/outnut hy using lava GUIT - ******* *********** Please choose your preferred cake: 1-New York Cheese 2-Black Forest Cheese 3-Red Velvet 4-Fruitilicious Enter your choice of cake: 1 Enter the quantity of cake : 1 Current total price : RM 348.00 Do you want to add your order?: 'Y' / 'N': N Grand total : RM 348.00 Please enter amount tendered: RM 400 ******* ********* Your Bill: ***** Total price RM 348.00 Amount Tendered RM 400.00 Balance RM 52.00 [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 12
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started