Question: Module-1: You have been assigning a task to develop a software to keep track of customer for a restaurant, menu detail of the restaurant. For

 Module-1: You have been assigning a task to develop a software

to keep track of customer for a restaurant, menu detail of the

restaurant. For auditing purpose you also want to keep record of the

order history of customer and total sale of the restaurant. Keeping these

requirement in mind complete the following task class item_detail int price: 1/

Module-1: You have been assigning a task to develop a software to keep track of customer for a restaurant, menu detail of the restaurant. For auditing purpose you also want to keep record of the order history of customer and total sale of the restaurant. Keeping these requirement in mind complete the following task class item_detail int price: 1/ Create an array to keep detail of the ingredient used in an item string name: int id; static int total_order=0; item_detail/????) {"create a constructor to initialize the class variable, make use of variable length arguments for input of ingredient/ 1 ?????? 1 ) // end of class class person 1 string name: int mobile_no; int order_no: 1/ create an array to keep track of items the person order during his/her visit, a person can visit restaurant multiple time person(string name, int mobile_no) this.name=name: this.mobile_no=mobile_no; order_no=0; } void placeOrder(item_detaill) a) // this method will accept the item_detail for one order and store the detail in order history ?? ) void displayHistory() // this method will traverse array and display the detail of order the person has placed } 1/ end of class class Restaurant // create an array to store the item serve by the restaurant // create an array that will hold the detail of the customer that visit restaurant Restaurant() // this constructor will initialize the menu of the restaurant 3 void addcustomerperson pl // this method will add customer to the restaurant 1 vold placeOrder person pl // this method will accept person object and update the order placed by the person in his/her order history 1 void Display Person History person p) // this method will display the detail of the order placed by the void DisplayPerson History person p) // this method will display the detail of the order placed by the person 1 1 void DisplayMenu() // this method will display the item served by the restaurant ) void DisplayBill(Person p) // this method will display the bill of a person 1 } void totalrevenuel) // this method will display the total revenue of the restaurant 1 void displayPremiumCustomer(// this method will display the customer who has spent more than 1000 rs in the restaurant 1 1 llend of class // create a main class that will display option to user for viewing menu of the restaurant // view total revenue of the restaurant // view order history of a person and current bill of a person, a person is identified by his/her mobile number // view premium customer // place order //add customer

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!