Project Description The BlueMont chain hotels have 4 different types of room: Single room: $60/night Double room: $75/night King room:  ...

80.2K

Verified Solution

Question

Programming

Project Description

The BlueMont chain hotels have 4 different types ofroom:

Single room: $60/night

Double room: $75/night

King room:   $100/night

Suite room: $150/night

The size of the hotel chains in different locations may bedifferent in terms of the number of floors and the type and thenumber of rooms on each floor.

You are required to write a program that calculates theoccupancy rate and the total hotel income for one night anddisplays this information as well as some other informationdescribed below.

The program starts by asking the location where this hotel chainis located and the number of floors in the hotel. The number offloors may not exceed 5. The User then enters thetotal number of rooms for each floor. The program then asksspecifically the number of occupied rooms for each room type onthis floor. The total number of rooms on each floor may not exceed30 and the program should check that the totalnumber of occupied rooms on each floor does not exceed the total ofrooms on that floor.

After the information is entered for each floor, the programcalculates the following:

- Hotel income (based on the room type and its rate),

- The total number of occupied rooms,

- Total number of the uncopied rooms,

- The rate of occupancy,

- Floor number with the minimum number of rooms. (Assume no twofloors have the same number of rooms).

- A message to improve the occupancy rate for the occupancy rateof less than 60%.

- Programmer’s full name

- Project number

- Project due date

Project Specifications

-Use constant variables to hold roomrates, max and min # of floors and rooms.

-The program should continuously askfor the correct floor number if it is not within the range of1 and 5.

-The program should continuously askfor the correct number of rooms for each floor if it is not withinthe range of 1 and 30.

-The program should repeat the processof asking the number of rooms on the floor and number of occupiedrooms if the total number of occupied rooms exceeds the totalnumber of rooms on the floor.

Answer & Explanation Solved by verified expert
3.6 Ratings (524 Votes)
Codeinclude include include using namespace stdint main    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students