Question: Q 2 ( b ) ( 8 marks ) The software is being further developed to store whether the whole party is present or not;
Qb marks
The software is being further developed to store whether the whole party is present or not; party complete being indicates the party is incomplete and so cannot yet be seated and party complete being indicates the party is complete, and therefore can be seated when a table becomes available.
The code below implents this as a class. The asdict method can be used to return a dictionary of the bookings which can be used for testing purposes.
Write a problem definition for a function which returns a tuple with two values: the first being the count of bookings with parties which are incomplete and the second being the count of bookings with parties which are complete.
Write your answer here
Function:
Inputs:
Preconditions:
Output:
Postconditions:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
