Consider the situation where the library decides to cut down on truancy by imposing fines. When an overdue book is returned, the librarian would like to know the amount of fine and send out a notice to the user regarding the fine payable. The system should therefore compute the fines and display the relevant information. 1. The member arrives at the return counter with a set of books and gives the clerk the books. 2. The clerk issues a request to return books 3. The system asks for the identifier of the book 4. The clerk enters the book identifier 5. If the identifier is valid, the system marks that the book has been returned and informs the clerk if there is a hold placed on the book; otherwise (that is, in case of an invalid id), it notifies the clerk that the identifier is not valid. If there is a fine involved, the system computes the amount of fine using the rule and adds it to the user's account and information about the member is displayed. It then asks if the clerk wants to process the return of another book 6. If there is a hold on the book, the clerk sets it aside. He/she then informs the system if there are more books to be returned 7. If the answer is in the affirmative, the system goes to Step 3. Otherwise, it exits

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Please answer with python language and preferably typed so i can run it myself.
Consider the situation where the library decides to cut down
on truancy by imposing fines. When an overdue book is
returned, the librarian would like to know the amount of fine
and send out a notice to the user regarding the fine payable.
The system should therefore compute the fines and display the
relevant information.
1. The member arrives at the return counter with a set of
books and gives the clerk the books.
2. The clerk issues a request to return books
3. The system asks for the identifier of the book
4. The clerk enters the book identifier
5. If the identifier is valid, the system marks that the book
has been returned and informs the clerk if there is a hold
placed on the book; otherwise (that is, in case of an
invalid id), it notifies the clerk that the identifier is not
valid. If there is a fine involved, the system computes the
amount of fine using the rule and adds it to the user's
account and information about the member is displayed.
It then asks if the clerk wants to process the return of
another book
6. If there is a hold on the book, the clerk sets it aside.
He/she then informs the system if there are more books
to be returned
7. If the answer is in the affirmative, the system goes to
Step 3. Otherwise, it exits
Transcribed Image Text:Consider the situation where the library decides to cut down on truancy by imposing fines. When an overdue book is returned, the librarian would like to know the amount of fine and send out a notice to the user regarding the fine payable. The system should therefore compute the fines and display the relevant information. 1. The member arrives at the return counter with a set of books and gives the clerk the books. 2. The clerk issues a request to return books 3. The system asks for the identifier of the book 4. The clerk enters the book identifier 5. If the identifier is valid, the system marks that the book has been returned and informs the clerk if there is a hold placed on the book; otherwise (that is, in case of an invalid id), it notifies the clerk that the identifier is not valid. If there is a fine involved, the system computes the amount of fine using the rule and adds it to the user's account and information about the member is displayed. It then asks if the clerk wants to process the return of another book 6. If there is a hold on the book, the clerk sets it aside. He/she then informs the system if there are more books to be returned 7. If the answer is in the affirmative, the system goes to Step 3. Otherwise, it exits
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY