Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago