Write program for hotel booking system using C++ Program Requirement:   a) Create least one (1) base class.   b) Create least two (2) derived classes that inherit from the base class created in 2(a).   c) Create least one (1) object for each class and one (1) array of objects for one of the class.   d) Create least one (1) default constructor for every classes.   f) Apply dynamic memory allocation using keyword new and delete for any object or array of objects.   g) Create least one (1) virtual function.   h) Write sufficient comments to explain your program.   (Note : Only a reasonable level of user input checking is needed. Assume that a user will input text and numbers in good faith. He/she will not purposely enter text into a number field and will not key in non-alphanumeric characters for all text fields

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.2: Basic Class Functions
Problem 6E
icon
Related questions
Question

Write program for hotel booking system using C++

Program Requirement:

 

a) Create least one (1) base class.

 

b) Create least two (2) derived classes that inherit from the base class created in 2(a).

 

c) Create least one (1) object for each class and one (1) array of objects for one of the class.

 

d) Create least one (1) default constructor for every classes.

 

f) Apply dynamic memory allocation using keyword new and delete for any object or array of objects.

 

g) Create least one (1) virtual function.

 

h) Write sufficient comments to explain your program.

 

(Note : Only a reasonable level of user input checking is needed. Assume that a user will input text and numbers in good faith. He/she will not purposely enter text into a number field and will not key in non-alphanumeric characters for all text fields.)

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr