Question: in java please. QUESTION 1 10 points The following UML class diagram is for a restaurant ordering system. Study the UML then answer the questions

in java please.
in java please. QUESTION 1 10 points The following UML class diagram
is for a restaurant ordering system. Study the UML then answer the
questions below: Order int burger -intensity - int potato Oy - double

QUESTION 1 10 points The following UML class diagram is for a restaurant ordering system. Study the UML then answer the questions below: Order int burger -intensity - int potato Oy - double burgerPrice -double pepsiPrice -double potato Price -int customerOrderNo -static intordern Ordero O vaid create Order(int burgeroty, int pepsity, int potato@ty, double burgerPrice, double pepsiPrice, double potatoPnce) + double calculateInvoice + boolean drawWinner o+String to Stringo a. Create a class "Order" with its member variables and methods. 1. Create an initialization constructor for the class "Order" to initialize the class variables to empty values. (1 point) 2. Write a method createOrder().to fill the order details.( 2 point) 3. Write a method calculatelnvoice(). This method shall return the invoice total amount including 5% VAT. (3 points) 4. Write a method to String. This method shall return the order details. (1 points) 5. Write a method drawWinner(). This method shall generate a random number between 1 to 1000, If the customerOrderNo double penince -double potato Price int customer Order No staticant andet Ordono Ovoid createOrderint burgeroty, int pepsiaty.int potato, double burgerPrice double pepsiPrice, double potatoes O double calculateinvoice -boolean diawWinnero String toString a. Create a class "Order" with its member variables and methods. 1. Create an initialization constructor for the class "Order" to initialize the class variables to empty values. (1 point) 2. Write a method createOrder().to fill the order details:( 2 point) 3. Write a method calculateInvoice(). This method shall return the invoice total amount including 5% VAT. (3 points) 4. Write a method toString(). This method shall return the order details. (1 points) 5. Write a method drawWinner(). This method shall generate a random number between 1 to 1000, If the customerOrderNo is same as the generated random number, the customer will win a free order. (3 points) For the toolbar, press ALT+F10 (PC) or ALT FN+F10 (Mac). B IVS Paragraph Arial 14px iii A 2 T % OO a 6 - [+ V X XT BE3 (> 10 1T 15 X > Click Save and Submit to sue and subunit. Click Save Al Answers to save all answers. Save All Answers Save and Submit MacBook Air Save Araw QUESTION 2 4 points B. Create a main class to test your Order class and do the following: 1. Declares two objects of type Order and set the data of the objects to some new data to be inserted from the keyboard. (1 point) 2. Display "Congratulations" if the customer won a free order and "Hard luck" if not. (1 point) 3. Print the following order details for object1: (1 point) Burger quantity and price. Potato quantity and price. Pepsi quantity and price. Invoice total with and without tax. 4. Display the total number of orders. (1 point) 14px > For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIY Paragraph Arial 46 o da A T. +] X X X Align right @ ) T 95 SA H DO Save and Submit Save All Amwers Click Save and Submit to save and submit. Click Save All Answers to save all ansters

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!