Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program: Create a class called Hotel to represent the hotel for which the system is created. The class has the following data members: -

C++ Program:

Create a class called Hotel to represent the hotel for which the system is created. The class has the following data members:

- Name (string) - Address (string) - Tel (string) - Number of rooms (integer) (250 room hotel) - Rooms (a collection of rooms)

The class should have at least the following member functions: - One or more constructors - Typical getters and setters - Outputting the rooms with their occupation status on a given date - Outputting the list of customers who reserved rooms in a given date interval - Outputting the list of customers who reserved rooms of type Suite in a given date interval - Outputting the list of customers who reserved rooms of type Regular in a given date interval - Outputting the list of customers whose stay duration is more than or equal to an input number x - Returning true if there are no more rooms to book (i.e., the hotel is booked up). - A function that prints information about a hotel - A destructor

Create a driver to test the class Hotel

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_2

Step: 3

blur-text-image_3

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago

Question

Strives for continual collective performance improvement.

Answered: 1 week ago