Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following sequence shows all bookings (advance and walk-in) within the system for a given night. When a table is not allocated, 0 is used
The following sequence shows all bookings (advance and walk-in) within the system for a given night. When a table is not allocated, 0 is used in place of a table number. Smith is assigned reservation ID 22 and is a walk-in, so is not assigned a table number. Mason booked in advance and requested table 2 . They are assigned reservation ID 23. Jones is also a walk-in and is assigned ID 24. They were also not assigned a table number. Note that the system does not record the party size. If the booking data were to be stored in an array of dicts (instead of in a Python list), explain and justify the assumptions you would need to make. Explain the processes you would need to go through to be able to add a new advance booking for a patron as well as a walk-in booking. Refer to the table above to illustrate your points. Write your answer here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started