Looking for a similar answer, essay, or assessment help services?

Simply fill out the order form with your paper’s instructions in a few easy steps. This quick process ensures you’ll be matched with an expert writer who
Can meet your papers' specific grading rubric needs. Find the best write my essay assistance for your assignments- Affordable, plagiarism-free, and on time!

Posted: January 3rd, 2023

Create a Small Library Inventory Program that Checks In and Out Book

Question description

Hello, I need help creating a project with the following features in C++:
-The Book class counts the number of times a book has been checked
out. -The Library class contains a collection of Book instances. -New books are added to the collection of the Library class through the calls to addbookintoCollection( ). -The books are allowed to be checked out by calls to bookCheckout( ) in the library class. -Subclass via inheritances std::logic_error to create bookNotAvailable errors when users attempt to create errors. -Only want to provide the public API.
Here is the outline to follow:
class Library {  public:  library();  void addbookintoCollection( string author, string title );  void bookCheckout( string author, string title ) throw (bookNotAvailable);  void bookCheckin( string author, string title ) throw (bookNotAvailable);  friend operator<< ( ostream& out, const Library & l );  private:  Book myBooks[ 20 ];  int numberOfbooksSeenthusfar;} class Book{  public:  Book();   Book( string author, string title );  string getAuthor() const;   string getTitle() const;   int getNumberCheckedOut() const;   void increaseNumberCheckedOut( int amount=1 );   friend operator<< ( ostream& out, const Book & b );  private:  string theAuthor;   string theTitle;  int theNumberCheckedOut;} Here is the driver code: Library lib;lib.addBookToCollection( “F. Scott Fitzgerald”, “The Great Gatsby” );lib.addBookToCollection( “J. D. Salinger”, “The Catcher in the Rye” ); cout << lib << endl; try {   lib.bookCheckout( “J. D. Salinger”, “The Catcher in the Rye” );  lib.bookCheckin( “J. D. Salinger”, “The Catcher in the Rye” );   lib.bookCheckout( “F. Scott Fitzgerald”, “The Great Gatsby” );} catch(bookNotAvailable notava ) {   cout << “You have entered the incorrect:”;  cout << notava.goof() << endl;} Thanks for the help

Tags: Academic Paper Assistance, Assignment Help Australia, Cheap Essay Writing Service, Dissertation Writing Services

Order|Paper Discounts

Why Choose Essay Bishops?

You Want The Best Grades and That’s What We Deliver

Top Essay Writers

Our top essay writers are handpicked for their degree qualification, talent and freelance know-how. Each one brings deep expertise in their chosen subjects and a solid track record in academic writing.

Affordable Prices

We offer the lowest possible pricing for each research paper while still providing the best writers;no compromise on quality. Our costs are fair and reasonable to college students compared to other custom writing services.

100% Plagiarism-Free

You’ll never get a paper from us with plagiarism or that robotic AI feel. We carefully research, write, cite and check every final draft before sending it your way.