Question: Assignment Instructions are as follows: Design and define a class named Order, which is used to create objects to store each customer's order for

Assignment Instructions are as follows: Design and define a class named "Order", which is used to create objects to store each customer's order for a fast food restaurant. Write a java program (Order.java) to provide definition of the class, and a test program (OrderTest.java) to create an Order object instance (based on user inputs: the foods that they order, and the price of each foods, etc.), and print out the data related to that order. Should include at least the following order information in Order class: Private instance variables: (1) order id, (2) list of foods that user ordered (both type and quantity, e.g., 1 chicken sandwish, 1 medium fry), (3) the unit price of each food (e.g., chicken sandwish: $4.99, medium fry: $1.99). Public methods: (1) at least one constructor, (2) get/set methods that provide public interfaces for instance variables, (3) calculate and return total amount, (4) calculate and return tax amount, and (5) calculate and return final bill amount. (6) a print method that print out all order related information as an invoice/receipt and display it in console. You may add other attributes and methods in Order class, be creative.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
