Question
Please solve 4 and the questions under it (Q1, Q2...) That is 4. Implement the main function: Q1: Create a restaurant with parameters Q2: Create
Please solve 4 and the questions under it (Q1, Q2...) That is
4. Implement the main function:
Q1: Create a restaurant with parameters
Q2: Create a menu for that restaurant with the initial price of 2000fcfa
Q3: Create an array of n customers:
Q4: Order a menu for each customer
Q5: Prints the names of customers who have not successfully ordered the menu (that is their expenditure is greater than 0)
Q6: write the instruction that allow knowing the address of the restaurant in which a customer ate.
Also, Here is what was done for the first portion
the fcfa is a currency just like the dollar. I need this in an hour or two if possible. Please help me!! I will leave a like and excellent comment about the work. Thanks in advance.
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 4. Implement the main function: Q1: Create a restaurant with parameters Q2: Create a menu for that restaurant with the initial price of 2000fcfa Q3: Create an array of n customers: Q4: Order a menu for each customer Q5: Prints the names of customers who have not successfully ordered the menu (that is their expenditure is greater than 0) Q6: write the instruction that allow knowing the address of the restaurant in which a customer a ate. #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started