Write a program that calculates the occupancy rate for a hotel (Using basic C++ like forloops,ifelse,while, etc. NO functions/arrays)
The program should meet the following requirements:
Displays a title, and welcome message to the user.
Ask the user how many floors the hotel has (do not accept an answer less than 1).
For each floor, ask the user to enter the total number of rooms.
For each floor, ask the user if any rooms are currently occupied (the amount occupied should never surpass the total number of rooms on that floor). Allow the user to respond with only ‘Y’ or ’N’ (If the users anything other than these responses, display an error message and ask the user to respond accordingly. If the answer is ‘Y’, ask the user to enter the number of rooms that are currently occupied.
The program’s final output should contain:
1) The total number of rooms on each floor.
2) The number of rooms currently occupied on each floor.
3) The number of rooms currently unoccupied on each floor.
4) The floor’s occupancy rate (Number of rooms currently occupied divided by the total number of rooms)
A summary of the entire hotel that includes
1) The number of floors
2) The number of rooms occupied
3) The number of rooms unoccupied
4) The hotel’s occupancy rate (Number of rooms currently occupied divided by the total number of rooms in the hotel)
The output should resemble the following:
Hotel Occupancy Calculator
Welcome to the Hotel Occupancy Calculator. Our system will allow you to enter information for your hotel and see the occupancy rates in detail.
Floor Rooms Available Occupied Occupancy Rate
Floor 1 20 5 15 75
Floor 2 12 5 7 58.33
Number of Rooms: 32
Available Rooms: 10
Occupied Rooms: 22
Occupancy Rate: 68.75%
We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.Read more
The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.Read more
The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.Read more
By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.Read more