Create the SoldBook Class
Create a class named SoldBook, which is derived from the InventoryBook class. Its purpose is to represent a book that has been sold to a customer, and perform the nec-essary calculations for the sale of a book. It should have the following members:
Member Variables:
taxRate A static private member, used to hold the sales tax rate.
qtySold The quantity of this particular book that is being purchased.
tax The sales tax on the purchase of this particular book, calculated as qtySold times retail times taxRate. (retail is inherited from InventoryBook.)
subtotal total The subtotal of the sale of this particular title. The subtotal is calculated as retail times qtySold plus tax.
Total A private static member, used to hold the total of an entire sale
You should determine the accessors, mutators, and other member functions needed in this class.
The cashier function should ask the user how many titles the customer is purchasing. It should then dynamically allocate an array of SoldBook objects large enough for that many titles. The function will use the array of SoldBook objects to compute the necessary information for a customer's sale. The function will then display the simu-lated sales slip on the screen.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.