Software Sale Software Company Sells Package Retails 99 Quality Discounts Given According Q43864058
Software Sale
A software company sells a package that retails for $99.Quality discounts are given according to the followingtable:
Quantity
Discount
10-19
10%
20-49
20%
50-99
30%
100 or more
40%
Write a program that asks the user to enter the numberof packages purchased. The program should the display the amount ofthe discount (if any) and the total amount of the purchase afterthe discount.
All the numbers have to be rounded to two decimal placesas shown below.
Sample run:
Enter the number of packages purchased: 10
Discount Amount: $ 99.00
Total Amount: $ 891.00
Enter the number of packages purchased: 20
Discount Amount: $ 396.00
Total Amount: $ 1584.00
Enter the number of packages purchased: 50
Discount Amount: $ 1485.00
Total Amount: $ 3465.00
Enter the number of packages purchased: 100
Discount Amount: $ 3960.00
Total Amount: $ 5940.00
Please Write it in programming C language and explain what weare doing in each step.
Expert Answer
Answer to Software Sale A software company sells a package that retails for $99. Quality discounts are given according to the foll…
OR