Question: Please do not use Java! Please the code must must be in C++ Q1. (50 marks) Hotel Cplusplus has 20 rooms (room numbers are from

Please do not use Java! Please the code must must be in C++
Q1. (50 marks) Hotel "Cplusplus" has 20 rooms (room numbers are from 1 to 20). You are supposed to design and implement the Hotel Reservation system in C++ for the March break holidays. The reservations take place between March 1 to March 8 7 nights). Define the following classes to manage the hotel "Cplusplus" reservation system. Include one or more constructors, destructor and the necessary set and get functions for each class. Also, provide a print function for each class, which outputs all the data members of that class. D) Define a class Guests_Res_Request with the following data members: . one Guests object from partc An integer counter that generates reservation IDs (unique) An integer variable as a reservation ID. (for simplicity you can assume the reservation ID starts from 1 and it is incremented by one whenever a Gusts_Res_Request object is created. Number of nights . E) Define a class Reservation Manager with the following data members: 1/3 COEN 244 - Winter 2022 Variable maximum number of nights (max_no_of_nights) for the reservation (should be equal to 7 (March 1 to March 8) for this case Variable number of rooms (no_of_rooms) which shows the total number of available rooms (it should be 20) An array of pointers to the Guests Res Request objects (Guest_Res_request arr) A two-dimensional (max_no_of_nights * no_of_rooms) array of integers which is filled with the reservation ID when a reservation request is processes. (The array entries are initialized to 0 at the beginning). The following table shows an example of this two-dimensional array: 15 19 20 Mar 1 16 17 18 6 6 Mar 3 1 2 4 3 4 5 6 7 8 9 10 11 12 12 13 14 1 3 1 1 2 2 4 4 101 2 4 10 2 10 2 2 6 7 Mar 4 6 Mars 5 5 5 5 5 5 Mart 8 9 9 9 9 Mar? All the empty spots are filled by O At least the following additional functions should be provided: A Member function that processes a Gusts_Res_Request that is received as an input parameter. The reservation is successful, if the a room (with a specific number) is available for all the duration of the guests stay (number of nights). If the reservation is successful, this function returns the reservation ID and the new reservation ID is added to the corresponding elements in the two dimensional array. Also, the Gusts Res Request object should be added to the array of requests. If the reservation is not successful, it should be deleted from the array of request objects. If the reservation is not successful, the Gusts_Res_Request object should be deleted from the array of requests. A member function that receives a reservation ID as a parameter and outputs the details of the reservation. A member function that receives a reservation ID and cancels the reservation request
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
