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 softwareplease 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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!