Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user how many floors the hotel has. A loop should then iterate onceforeachfloor.Ineachiteration,the loop should ask the user for the number of rooms on the floor and how many of them are occupied. After all the iterations, the program should display how many rooms the hotel has, how many of themareoccupied, how many are unoccupied, and the percentage of rooms that are occupied. The percentage may be calculated by dividing the number of rooms occupied by the number of rooms.
NOTE: It is traditional that most hotels do not have a thirteenth floor. The loop in this program should skip the entire thirteenth iteration.
Answers
Answered by
0
Answer:
The ratio of bus and train fare is 3:4 from Calcutta to Malda. The train fare increases in the ratio 5:6 and the bus fare in the ratio 10:11 .Find the new ratio of the fares
Similar questions
Math,
2 days ago
Math,
2 days ago
Math,
4 days ago
India Languages,
4 days ago
Social Sciences,
9 months ago
English,
9 months ago