Question: Need python code for below University library software system model has a collection of books and Students. A Student can have at most four books

Need python code for below

University library software system model has a collection of books and Students.

A Student can have at most four books out on loan.

Each book has a,

  • Title
  • an author
  • A student to whom it has been checked out
  • A list of students waiting for that book to be returned

When a student wants to borrow a book, that student is automatically added to the books wait

list if the book is already checked out. When a student returns a book, it is automatically loaned

to the first student on its wait list who can check out a book

Each student has a,

  • Name
  • Number of books he/she has currently checked out.

Develop the classes Book and Student to model these objects. Think first of the interface or set of methods to be used with each class, and then choose appropriate data structures for the state of the objects. Finally, write a script to test these classes

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!