that we are going to design a system to Manage loans from the local public library For this we will need the following entities, plus collections for each of the entities: Patrons, Books and Loans The data for a Book will contain at least the following: Author Title ISBN Number Library ID number Cost Current Status (In, Out, Repair, Lost) You may add other data needed for your implementation as well as you will need accessor and mutator functions for the data. The data for a Patron will contain at least: Name (e.g. Fred Smith) ID number (6 digits e.g. 123456) Fine Balance Current # of books out You may add other data needed for your implementation as well as you will need accessor and mutator functions for the data. The data for a Loan (The transaction entity) will contain at least the following: Loan ID Book ID Patron ID Due Date and Time Current Status (overdue, normal) You may add other data needed for your implementation as well as you will need accessor and mutator functions for the data. For the collections of each of the Patrons and Books Classes identified above you will need to include the ability to: Add Edit delete Search/Find based on appropriate criteria Print a list of all entries in the collection Print the details for a single entity (do a find first) Other methods you may identify For Loans you will need: Check Out a book (update book and patron info as well as add a loan) Check in a book (check for fines and update patron and book info and delete loan) List all overdue List all books for a particular patron Update loan status based on system clock Re-Check a book Edit a loan Report lost (update book and charge patron book cost as well) Other methods you may identify You will need to verify the following Before borrowing a book, make sure Patron has no overdue books and that total books out will be <= 6 including new borrow When checking a book in, determine if fines are owed Reporting a book as lost records the cost of the book to the patrons fine balance For Loans Add = Borrow a book Delete = Return a book Edit = Re-check Also will need a PayFines (in Patrons) Report Lost (in Loans but will have to update books and patrons) Print a list of overdue books with patron info (in loans but will have to update books and patrons)   You will need to provide an appropriate menu system that can be multi-level if you like. Do not attempt to provide card catalog services for allowing patrons to search for books. You may assume each book has a unique acquisition number, and you may use these numbers to refer to books borrowed and returned.   You will need to load and store the data. This can be done automatically when the program starts and ends. You should also want to store after an add, delete or edit to make sure changes to the data are preserved. You can assume the following Loan period is 10 days with an additional recheck of 10 days (1 recheck only) A max of 6 books can be out to a single patron at a time Fine rate is $0.25 per day (24 hour period)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

write a c++ program

that we are going to design a system to Manage loans from the local public library

For this we will need the following entities, plus collections for each of the
entities: Patrons, Books and Loans

The data for a Book will contain at least the following:
Author
Title
ISBN Number
Library ID number
Cost
Current Status (In, Out, Repair, Lost)

You may add other data needed for your implementation as well as
you will need accessor and mutator functions for the data.

The data for a Patron will contain at least:
Name (e.g. Fred Smith)
ID number (6 digits e.g. 123456)
Fine Balance
Current # of books out

You may add other data needed for your implementation as well as
you will need accessor and mutator functions for the data.

The data for a Loan (The transaction entity) will contain at least
the following:

Loan ID
Book ID
Patron ID
Due Date and Time
Current Status (overdue, normal)

You may add other data needed for your implementation as well as
you will need accessor and mutator functions for the data.

For the collections of each of the Patrons and Books Classes identified above you
will need to include the ability to:

Add
Edit
delete
Search/Find based on appropriate criteria
Print a list of all entries in the collection
Print the details for a single entity (do a find first)

Other methods you may identify

For Loans you will need:

Check Out a book (update book and patron info as well as add a loan)
Check in a book (check for fines and update patron and book info and delete loan)
List all overdue
List all books for a particular patron
Update loan status based on system clock
Re-Check a book
Edit a loan
Report lost (update book and charge patron book cost as well)

Other methods you may identify

You will need to verify the following

  1. Before borrowing a book, make sure Patron has no overdue books and that total books out will be <= 6 including new borrow
  2. When checking a book in, determine if fines are owed
  3. Reporting a book as lost records the cost of the book to the patrons fine balance
  4. For Loans Add = Borrow a book
    Delete = Return a book
    Edit = Re-check
  5. Also will need a
    PayFines (in Patrons)
    Report Lost (in Loans but will have to update books and patrons)
    Print a list of overdue books with patron info (in loans but will have to update books and patrons)

 

You will need to provide an appropriate menu system that can be multi-level
if you like.

Do not attempt to provide card catalog services for allowing patrons to search for books. You may assume each book has a unique acquisition number, and you may use these numbers to refer to books borrowed and returned.

 

You will need to load and store the data. This can be done automatically
when the program starts and ends. You should also want to store after an
add, delete or edit to make sure changes to the data are preserved.

You can assume the following

Loan period is 10 days with an additional recheck of 10 days (1 recheck only)

A max of 6 books can be out to a single patron at a time

Fine rate is $0.25 per day (24 hour period)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education