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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started