Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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. A) Define a class Date that has the following data members: Month day and year, B) Define a class information with the following data members: first name (array of characters), last name (array of characters), and date of birth (from part A) C) Define a class Guests with the following data members: Check in date (from part A) Check out data (from part A) An array that keeps the information of all the guests in a room (from part B, maximum capacity of the array is 4) Room number (1 to 20) (assume maximum number of reserved room is 1) 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
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