subject
Computers and Technology, 28.01.2020 17:42 MQV2000

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 the hotel has. a loop should then iterate once for each floor. during each iteration, 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 the number of rooms the hotel has, the number 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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
You know the right answer?
Write a program that calculates the occupancy rate for each floor of a hotel. the program should sta...
Questions
question
English, 05.12.2020 04:50
question
History, 05.12.2020 04:50
question
Mathematics, 05.12.2020 04:50
question
Social Studies, 05.12.2020 04:50
question
Mathematics, 05.12.2020 04:50
question
Mathematics, 05.12.2020 04:50
Questions on the website: 13722359