Question: Coding in C++ 50) Design, code, and test a CashRegister class that can be used with the Inventory class to Prompt user for item and

Coding in C++

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 items cost from the Inventory object
  3. Add 30% (profit margin) to the cost to determine the items 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!