python programming
see the attachment
……………..
……….
…………….. The Royal Hospital is one of the government hospitals in Oman. This hospital has many
facilities such as 3 swimming pools, 2 tennis courts, 2 badminton courts, 2 squash rooms and
many billiards tables for booking. Each of these facilities has facility number that can be used
to book the facility. The hospital approached you to help them to keep track of their facilities
bookings. They requested you to write a python program to fulfil the following requirements.
1. It should have a menu with options to show available facilities and their booking.
2. Menu should be displayed after every operation
3. Menu should have an option to exit from the program. Program should continue
execution until exit option selected.
4. Entering wrong menu option should prompt the user with error message and menu
should be redisplayed
5. User can see which facilities are currently available by selecting an option show
available facilities from menu. Booked facilities should not be displayed.
6. User can book the facility based on the availability by selecting an option from menu.
Number of hours should be asked while booking the facility. When booking
completed, show the total price to pay.
a) While booking the facility, only available facilities should be displayed to users.
Selecting unavailable facility should be prompted with error message and request
the user to enter available facilities
b) Total Price should be calculated based on the number of hours booked. Price per
1 hour is 20 Omani Rials.
c) After booking a facility is completed, the booked facility should not be displayed
in the available facilities.
Note: Must use functions, loops, list and conditions to solve this problem.