Question
Draw a class diagram for the following situation: A library has a large number of items that customers can borrow. In addition to books, the
Draw a class diagram for the following situation:
A library has a large number of items that customers can borrow.
In addition to books, the collection includes audio products (audio CDs, books on CD, and books on tape) and video products (videotapes, DVDs, and Blu-ray disks).
There can be multiple copies of each of the products, and it is important to know which specific copy a customer checks out.
Most items can be checked out, but the length of time a customer can keep an item varies depending on the item.
A customer can have multiple items checked out at the same time.
When the customer is checking out items, the system verifies whether the customer has any overdue items.
If the items are overdue by less than the length of the original allowed checkout time, the system produces a reminder that is included in the receipt that is given at the time of each checkout.
If, however, the limit has been exceeded, the system will prevent the customer from checking out any additional items.
When an overdue item is returned, the system will calculate the fine amount based on the number of days the item is overdue and the length of the original checkout period.
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