Write a c class definition specification file for an


Write a C++ class definition (specification file) for an abstract data type describing a bookstore inventory. Each book has the following attributes:

Book title (character string);

Book author (character string);

Book price (floating-point number having two decimal places);Count of books on hand (integer).

The member functions are as follows:

A constructor that is used to initialize all four elements of the structure to vlaues inputted by the user:

A Function that displays in a readable tabular form the contents of a book in inventory;

A "modify: function that has as an argument a code ('T', 'A", 'P', or 'C') indicating which attribute (title, author, price, or count) of the indicated book is to be changed. Based upon the attribute code, the appropriate prompt should be displayed to allow the user to enter the new value of the attribute.

Solution Preview :

Prepared by a verified Expert
Business Economics: Write a c class definition specification file for an
Reference No:- TGS02183304

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)