Question: Write a python program using nested while loop, def main() and enter the value for occupied suites Number of suites on floor 10:3 The number

Write a python program using nested while loop, def main() and enter the value for occupied suites

Write a python program using nested while loop, def main() and enter

Number of suites on floor 10:3 The number of Occupied suites:2 Number of suites on floor 11:3 The number of Occupied suites:2 Number of suites on floor 12:3 The number of Occupied suites: 2 Number of suites on floor 14: 5 The number of occupied suites = : 4 Number of suites on floor 15:5 The number of occupied suites : 4 Number of suites on floor 16:5 The number of Occupied suites : 4 Requirements: Solve the problem by using a single for loop that repeats once for each floor between 10 and 16. . The floors are 10-12 and 14-16 because, there is no 13th floor, you have to skip the 13th floor because the number of suites vary from floor to floor, we must ask the user to input the number of suites on each floor, and the number of occupied suites there Use a nested while loop to validate that the value entered for occupied suites is between 0 and the number of suites on the given floor. At the end, we need to print one of the following messages: o "Poor Occupancy if the occupancy rate is less than 50.00% o "Acceptable Occupancy", if the occupancy rate is between 50.00% and 75.00% o Excellent Occupancy", if the occupancy rate is above 75.00%) Sample output: Total Suites : 24 Total Occupied Suites: 18 Occupancy Percentage : 75.00% Acceptable Occupancy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!