Python with File Method Restaurant reservation program. The application offers different reservation rate for adults and children. (see sample below) RESTAURANT RESERVATION SYSTEM System Menu a. View all Reservations b. Make Reservation c. Delete Reservation d. Generate Report e. Exit 2. When the VIEW RESERVATIONS is clicked, this
Using Python with File Method
Restaurant reservation program. The application offers different reservation rate for adults and children. (see sample below)
RESTAURANT RESERVATION SYSTEM
System Menu
a. View all Reservations
b. Make Reservation
c. Delete Reservation
d. Generate Report
e. Exit
2. When the VIEW RESERVATIONS is clicked, this will display all the reservations made:
# Date Time Name Adults Children 1 Nov 10, 2020 10:00 am John Doe 1 1 2 Nov 25, 2020
11:00 am Michelle Franks 2 1 3 Dec 10, 2020 9:00 am Ella Flich 1 1 4 Dec 21, 2020 12:00 pm
Dylan Cloze 2 1
3. If the user selects MAKE RESERVATION, the user needs to input the following:
a. Name (String)
b. Date (String)
c. Time (String)
d. No of Adults (Integer)
e. No of Children (Integer)
Note: Adult is 500 per head and Kids is 300 per head reservation, save the data in a text file. (example reservation.txt)
4. If DELETE RESERVATION is selected, the user needs to input the reservation number to remove the existing reservation.
5. If the GENERATE REPORT is clicked, display the report of all reservations:
REPORT
# Date Time Name Adults Children Subtotal 1 Nov 10, 2020 10:00 am John Doe 1 1 800.00 2 Nov
25, 2020 11:00 am Michelle Franks 2 1 1300.00 3 Dec 10, 2020 9:00 am Ella Flich 2 2 1600.00 4
Dec 21, 2020 12:00 pm Dylan Cloze 1 2 1100.00
Total number of Adults: 6
Total number of Kids: 6
Grand Total: $4800.00
-------------------- nothing follows --------------------------------------------
6. Use the concept of Object-Oriented Programming
7. Use the appropriate exception to handle possible errors made by the user.
a. Letters
b. Zero
c. No data
d. Others
8. When the EXIT selected. It will close or exit the system and displays “Thank you!”
![O Recording
You are viewing Cyrel Nicolas screen
view Options
File Edit View Navigate Code Refactor Run Iools VCS Window Help
PC
pythonProjecti - testtest.py
pythonProject1
testtest.py
testtest
testtest.py
i reservation.bxt
E info.txt X
Day7Act2.py
# Restaurant Reservation System
Day7Act2-a.py
O Day8Act3.py
Run:
finalexam TOT ×
testtest
[A] View All Reservations
[B] Make Reservation
[c] Delete Reservation
[D] Generate Report
[E] Exit
Enter your Option: d
REPORT
Date
Time
Name
Adults
Children
Subtotal
1
April 20, 2021
10:00pm
Cyrel
2
1
1300
2
Dec 12, 2021
10:00pm
Naruto
2
1600
Total Number of Adults : 4
Total Number of Children: 3
Grand Total
: PHP 2900.00
****
******** Nothing as Follows ********
******
[A] View All Reservations
[B] Make Reservation
1. Structure
I Project
Favorites](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F73ca18c3-03fe-4be8-976c-2d6a7e9ff3c8%2F58655ec1-e074-4d1a-9716-ec8d87d38518%2Ffqrq1zn_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









