write in C++
Paragraph Styles Name: __ CS 132-CP II - Assign #9 - Chap 13: Intro to Classes - Read and study pp. 705-798 Hand in solutions to the item below (tum in word processor output) - Total points: 50 (50) Design, code, and test a CashRegister class that can be used with the Inventory class to 1. Prompt user for item and quantity being purchased 2. Get the item's cost from the Inventory object 3. Add 30% (profit margin) to the cost to determine the item's unit price 4. Get subtotal by multiplying unit price by quantity being purchased 5. Calculate purchase total by adding 5% sales tax on the subtotal 6. Display purchase subtotal, tax, and total 7. Subtract quantity being purchased from the units member of the Inventory object You are free to use the Inventory class specification and implementation and main( below. Also, the CashRegister specification, parameterized ctor, and makeSale) member functions are provided if you care to use them. [If you use these, you only must implement the member functions calcUnitPrice(), calcSales Tax(), calcToto), adjustunits, makeChoice(), and pmtSaleo.] /* Sample output: # Item Quantity on Hand -- - 1 Infant Tylenol Aspirin 100 3 Aspirin 500 Robitussin 5 Heating Pad Which item above is being purchased?: 3 How many units?: -3 Enter or greater please: 3 Sub-total: $18.68 Sales Tax: $1.17 Total: $19.85 Do you want to purchase another item? y # Item Quantity on Hand Infant Tylenol 2 Aspirin 100 3 Aspirin 500 4 Robitussin 5 Heating Pad Which item above is being purchased?: 7 That's not a valid choice Which item above is being purchased?: 5 How many units?: 7 *** Not enough units in stock ** Do you want to purchase another item? y Item Quantity on Hand 28 1 Infant Tylenol CS 132 - Computer Programming II assien 9 Which item above is being purchased?: 5 How many units: 7 *** Not enough units in stock *** Do you want to purchase another item? y Quantity on Hand 28 1 Infant Tylenol CS 132 - Computer Programming II assign #9 2 Aspirin 100 3 Aspirin 500 4 Robitussin 5 Heating Pad which item above is being purchased?: 5 How many units: 2 Sub-total: $30.65 Sales Tax: $1.92 Total: $32.57 Do you want to purchase another item? y # Item Quantity on Hand 1 Infant Tylenol 2 Aspirin 180 3 Aspirin 580 4 Robitussin 5 Heating Pad Which item above is being purchased: 1 How many units: 2 Sub-total: $6.47 Sales Tax: $0.40 Total: $6.88 Do you want to purchase another item? n *