Question: HW help Write a C++ class definition (specification file) for an abstract data type describinga bookstore inventory. Each book has the following attributes: 4. o
HW help

Write a C++ class definition (specification file) for an abstract data type describinga bookstore inventory. Each book has the following attributes: 4. o o o o 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 values inputted by the user; o 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) ndicating 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. o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
