Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.
GET A 40% DISCOUNT ON YOU FIRST ORDER
A hotels occupancy rate is calculated as follows: Occupancyrate=number of rooms/total number of rooms. Write a program thatcalculates the occupancy rate for each floor of a hotel. Theprogram should start by asking for the number of floors in thehotel. A loop should then iterate once for each floor. During eachiteration the loop should ask the user for the numbe rof rooms onthe floor and the number of them that are occupied. After all theiterations the program should display the numbe rof rooms thehotel has the number of them that are occupied the number thatare vacant and the occupancy rate for the hotel. Input Validation:do not accept a value less than 1 for the number of floors. Do notaccept a number less than 10 for the number of rooms on afloor.