Dsign a class booktype that defines the book as an adt


The problem is design a class bookType that defines the book as an ADT. requirements: 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 acutal title of the book. Similarly, the typical operations that can be performed on the number of copeis in stock are to shw 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 apprpriate constructors and a destructor if one is needed): Write the definitions of the member functions of the class bookType: and wirte a program that uses the class bookTYpe and test various operations on the objects of the class bookType. Declare an array of 100 components of type bookType. Some of the oeprations that should perform are to search for a book by its title, search by ISBN, and update the number of copies of a book.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Dsign a class booktype that defines the book as an adt
Reference No:- TGS01724558

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)