Create a Library class. Include vectors of Books and Patrons. Include a struct called Transaction. Have it include a Book and a Patron from the chapter. Make a vector of Transactions. Create functions...

1 answer below »

Create a Library class. Include vectors of Books and Patrons. Include a struct called Transaction. Have it include a Book and a Patron from the chapter. Make a vector of Transactions. Create functions to add books to the library, add patrons to the library, and check out books. Whenever a user checks out a book, have the library make sure that both the user and the book are in the library. If they aren’t, report an error. Then check to make sure that the user owes no fees. If the user does, report an error. If all is well, create a Transaction, and place it in the vector of transactions. Also write a function that will return a vector that contains the names of all Patrons who owe fess.

Requirement: - book.h book.cpp - patron.h partron.cpp - library.h library.cpp - library_test.cpp, to provide main() and test library class.  - provide make file to compile your program.

Grading:  - compilable and meaningfull attemps - class book and patron - class library - test and main() - comment, indentation and file names and makefile
Answered Same DayApr 03, 2021

Answer To: Create a Library class. Include vectors of Books and Patrons. Include a struct called Transaction....

Samrakshini R answered on Apr 05 2021
151 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here