Write a program that uses the class booktype and test the


Programming Assignment.

Class and Data Abstraction

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 as an ADT.

1. 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 data member.

2. Include the member functions to perform the various operations on objects of the type bookType. For example, the usual operations that can be performed on the title are to show 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 author. Add the appropriate constructors and a destructor ( if one is needed).
3. Write the definitions of the member functions of the class bookType.

Write a program that uses the class bookType and test the various operations on the objects of class bookType. Declare an array of 100 components of the type bookType. Set to 5 components. Display the output.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program that uses the class booktype and test the
Reference No:- TGS02346148

Now Priced at $15 (50% Discount)

Recommended (96%)

Rated (4.8/5)