Question: Section B: Programming We have the following classes that allow managing a restaurant with the customers class Restaurant private: String name: String adress; public: String

 Section B: Programming We have the following classes that allow managinga restaurant with the customers class Restaurant private: String name: String adress;

Section B: Programming We have the following classes that allow managing a restaurant with the customers class Restaurant private: String name: String adress; public: String getName(); String getAdress(); void setName(String name); void setAdress (String adress); class Menu public: String name: Restaurant R; int price: int max_num_plates: //maximum number of plates int num_plate; /umber of plates ordered Menu (Restaurant Ri, int price) { this.R = R1; this.price - price: } void addNumberOfPlates (int n) { num_plate++; ) void add_or_reduce_price(int amount) {....()} Eclass Customer 3 public: String name : int expenditure; Customer() expenditure - 0; } void order (Menu m) .... (1) //verify .... (2) 1/change expenditure if necessary Dint main() { //01 Create a restaurant 1792 Create a menu for that restaurant with the initial price of 2000 1/93 Create an array of 3 customers 1/04 Order a menu for each customer 1/05 Prints the names of customers who have not succesfully ordered the menu /*Q6 write the instruction tha allow to know the address of the restaurant in which a customer ate. / 1. Implement the parametized constructor of the class Restaurant 2. In programming how do we call the set of 04 functions that are found in the class Restaurant? 3. Implement the copy constructor of the customer class 4. Give an implementation of (11.2) and (3) (1): verify if it is possible to order that menu by checking if the maximum number of plates is not attain, if not increment it. (2): add the expenditures if necessary (with the price of the menu) (3): implement this function

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!