Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Consider the scenario description given below and draw a Sequence Diagram for the following scenario. To borrow a book, a borrower must have an
1. Consider the scenario description given below and draw a Sequence Diagram for the following scenario. To borrow a book, a borrower must have an account with the library and present their library card together with the book(s) to the librarian on duty at the counter. Then, the librarian will start a transaction to record a book loan by entering the borrower's library card number into the system. The system will check whether the borrower has an overdue fine to be paid before the borrower can borrow new book(s). If the borrower does not have an overdue fine, the system will prompt a message asking the librarian to enter the identification number of the book(s) that the borrower wants to borrow, one by one. Each time the librarian enters the identification number of a book, the system will record the book loan, before asking the librarian to enter the identification number of the next book, if any. The librarian will end the transaction by clicking a button. Then, the system will print a receipt showing the information about the book(s) and the due return date of the book(s). The librarian will give the library card, the book(s) and the receipt to the borrower. If the borrower has an overdue fine, the system will not proceed with the book loan, and prompt a message asking for the fine to be paid first
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