Question: Write a function, * * tables _ _ ready * , * , which accepts as parameters a dictionary, * * bookings * * and

Write a function, **tables__ready*,*, which accepts as parameters a dictionary, **bookings** and an integer, **number__of__tables*,*, in that order. **number__of__tables** indicates the number of table available to be filled. The function should return the name of the most appropriate person to call. The most appropriate person to call is always the one with the lowest booking reference whose party is complete and who needs no more than the number of tables available. If there is no suitable person to call, then the function should return an empty string. For the purposes of this question you should ignore the requested table number. You can also assume that all entries for a given name will have the same party complete value and that all given names are unique ((this is a simplification; the module team is aware that all given names may not be unique).). In the example below all Howson's are incomplete, all Hackett's are complete.


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It appears there was some formatting issue with the question From what I can interpret you are asked ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!