Write a C++ program that asks for the number of units purchased and computes the total cost of the purchase. A software company sells a package that retails for $99. Quantity discounts are...


Write a C++ program that asks for the number of units purchased and computes the total cost of the purchase.


A software company sells a package that retails for $99. Quantity discounts are given according to the following table.



























Quantity

Discount
10-1920%
20-4930%
50-9940%
100 or more50%

Be sure to include the following:



Input Validation: Decide how the program should handle an input of less than 0.



Using Const to represent the RETAIL price per unit before the discount



Display formatted results, using fixed, showpoint, $ sign, and setpercision(2)





Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here