Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

What is behavioral persuasion in advertising designed to do?

Answered: 1 week ago

Question

=+ Is the information source free from bias on the subject?

Answered: 1 week ago

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago