A hotel’s occupancy rate is calculated as follows: Occupancy rate=number of rooms/total number of rooms.
A hotel’s occupancy rate is calculated as follows: Occupancy rate=number of rooms/total number of rooms. Write a program that calculates the occupancy rate for each floor of a hotel. The program should start by asking for the number of floors in the hotel. A loop should then iterate once for each floor. During each iteration, the loop should ask the user for the numbe rof rooms on the floor and the number of them that are occupied. After all the iterations, the program should display the numbe rof rooms the hotel has, the number of them that are occupied, the number that are vacant, and the occupancy rate for the hotel. Input Validation: do not accept a value less than 1 for the number of floors. Do not accept a number less than 10 for the number of rooms on a floor.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
