Answered step by step
Verified Expert Solution
Link Copied!

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

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 registration 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. Nobody is currently assigned table 4. Note that the system does not record the party size.
| Reservation ID | Name | Table |
| :-: | :-| :-: |
|22| Smith |0|
|23| Mason |2|
|24| Jones |0|
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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions