Question: please do by a python program 1. (40 XP) A simple software system for a library models a library as a collection of books and
please do by a python program
1. (40 XP) A simple software system for a library models a library as a collection of books and patrons. Develop the classes Book and Patron to model these objects. Choose appropriate data structures, attributes and methods for the state of the objects. Also write a short script to test these classes. The following conditions must be satisfied. A patron can have at most three books out on loan at any given time. Each book has a title, an author, a patron to whom it has been checked out, and a list of patrons waiting for that book to be returned. When a patron wants to borrow a book, that patron is automatically added to the book's wait list if the book is already checked out When a patron returns a book, it is automatically loaned to the first patron on its wait list who can check out a book Each patron has a name and the number of books that patron has currently checked out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
