Question: Use header files from now on to store declarations including classes which are normally in the global space. No declarations of any kind should be

Use header files from now on to store declarations including classes which are normally in the global space. No declarations of any kind should be in the global space of a .CPP file.

Write a C++ Hotel APP program

Design a Hotel Class which can hold information and show the cost of at least three hotel options and room choices for the brand.The class should have the following private member variables, hotel name, room type, room view and room cost.

hotel name: 3 different hotel options ( example Choice hotels brands - Sleep Inn, Quality Inn, Comfort Suites.)

room types: 2 queen, 2 double or king

room view: ocean or gulf

room cost: dependent on

2 queen ocean view $300

2 queen gulf view $200

2 double ocean view $250

2 double gulf view $200

king ocean view $150

king gulf view $100

Member functions should include mutators prefixed with the keyword "set" i.e. setQuantity and also include accessorsprefixed with the keyword "get" i.e. getQuantity.

set hotel name

get hotel name

set room type

get room type

set room cost

get room cost

Display the following choices in a menu using a switch statement within a loop which continues until the user quits.

Select hotel 3 different hotel options.

Select Room type - and within this choice also select the room view. Show the costs associated with each choice.

Display to screen display to screen.

Print to file print to output file.

Quit to exit the program (the condition in a loop should be strong enough to exit the loop )

Create a function for each menu item containing the code to perform the menu selection except for Quit.

Declare data types of variables (DO NOT USE AUTO)

You must deliver a .CPP file or .txt file and a header file.

Also deliver any input or output files.

C++ keywords are lowercase

User defined variables and functions should be in camelCase.

Constant variables should be defined in ALL CAPS and can be separated by an underscore.

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!