Write a portion of a class called Library. To be called Library.cpp and will inc
ID: 644613 • Letter: W
Question
Write a portion of a class called Library. To be called Library.cpp and will include (#include "Library.hpp") Library.hpp which is included below.
Library:
*checkOutBook
-if the specified Book or Patron are not in the Library (an ID doesn't match an object in the Library), print out that message and return to the menu
-if a Book is already checked out, print out that message and return to the menu
-if a Book is on hold by another Patron, print out that message and return to the menu
-otherwise update the Book's checkedOutBy, dateCheckedOut and Location; if the Book was on hold for this Patron, update requestedBy; update the Patron's list; print out that Book title has been checked out to Patron name
Here is the Library.hpp file:
Explanation / Answer
We can write the functions for searching a book in store and displaying its details as follows: void search(library *start) { clrscr(); char author[20],title[20]; couttitle>>author; while(start!=NULL) { if(title==start->title) { if(author==start->author) { coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.