Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication.

Design a class bookType that defines the book.

  • Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.
  • Include the member functions to perform the various operations on objects of type bookType. For example, the usual operations that can be performed on the title are to show the title, set the title, and check whether a title is the same as the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors (if one is needed).
  • Your class needs to have at least one pointer and an overloaded operator (you may use any of the possible operators that can be overloaded) in the class bookType.
  • You need to have at least one user-defined namespace.

Write the definitions of the member functions of the class bookType.

Write a program that uses the class bookType and tests various operations on the objects of the class bookType. Declare an array of 10 components of type bookType and populate book data from a data file (e.g. text file). Some of the operations that you should perform are to search for a book by its title, search by ISBN, and update the number of copies of a book.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.