You need to work out the operations of a library from the point of view of a library patron. As a minium, you need to design and implement these operations.
- Borrow books (patron)
- Return books (patron)
- Renew books (patron)
- Check current loans (patron)
- Add books to the library (library staff)
- Add patrons to the library (library staff)
Provide a simple text-based menu which enables the library patron to use your program. Library staff can add books and patrons to the library. Make sure you design a simple menu so that users do not get confused.
STL data structures can be used in this program. You must use the Binary search tree and the STL map data structures.
Your program should be able to save and load data using files. So that, you don't need to enter all the books and patron data every time your run your program. Data can be saved using the CSV format.
As borrowed books have a due date, you can use the date class and to keep track of the due dates.
Book data need to entry and store:
- Title, Author, Publisher, ISBN, Publication, NumberofCopies
Member data need to entry and store:
- ID, Name