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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY