Question: Write a C++ code to desing a program for XYZ HOTEL management. (Use Composition method to solve the problem) ConferenceRoom Customer Meeting roomNo:int roomName: string

Write a C++ code to desing a program for XYZ HOTEL management. (Use Composition method to solve the problem)

ConferenceRoom

Customer

Meeting

roomNo:int

roomName: string

capacity:int

custID:int

name:string

gender:string

age:int

meetingDate:string

Customers [5]

ConferenceRoom

ConferenceRoom(int,string,int)

printConRoom( ):void

Customer( )

Customer(int,string,string,int)

printCust( ):void

Meeting(..)

printMeeting( ):void

Assume there are rooms in the XYZ hotel. Each conference room has a unique room number which will be generated automatically whenever a new object is created. Meetings are arranged in the hotel and conference rooms are occupied for this purpose. More than one customer may attend to each meeting. Therefore, for each meeting we need to know when and where the meeting will be held and details of the customer(s).

A. Create all necessary classes using the composition method. Feel free to add any necessary data member/method.

B. Write a main to create a(n) object(s) that will display the details of a meeting as explained in the above scenario. (See sample output)

Sample Output for single customer

Meeting Date: 20-Jun-2019

Conference Room Details:

Room No:1002 Name: Delta Capacity: 130

Attendees:

Customer No Name Gender Age

1002 Ayse Can Female 22

Press any key to continue . . .

Sample Output for multiple customers (array object)

Enter customer no:1002

Enter customer name: Ayse Can

Enter gender (Male - Female):Female

Enter age:22

Enter customer no:1003

Enter customer name: Ahmet Mehmet

Enter gender (Male - Female):Male

Enter age:44

Meeting Date:20-Jun-2019

Conference Room Details:

Room No: 1002 Name: Delta Capacity:130

Attendees:

Customer No Name Gender Age

1002 Ayse Can Female 22

1003 Ahmet Mehmet Male 44

.

Press any key to continue . . .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!