Question: B. Create a main class to test your Order class and do the following: 1. Dedares two objects of type Order and set the data
B. Create a main class to test your Order class and do the following: 1. Dedares 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) . B. Create a main class to test your Order class and do the following: 1. Dedares 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)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
