Question: Software Sales * Program used is C + + not Python * A software company sells a package that retails for $ 8 9 .

Software Sales
*Program used is C++ not Python*
A software company sells a package that retails for $89.95. Quantity discounts are given according to the following table.
Quantity Discount
1-90%
10-195%
20-2910%
30-3915%
40-4920%
50 or more 50%
Write a program that asks for the number of units sold, validates the number of units, and computes the total cost of the purchase. If the units sold are not valid, an error message should be printed and no formal report printed.
The $89.95 should be a constant in the program. Remember to test your program for all possible discounts.
Output should be appropriately formatted; in particular, dollar amounts should show two digits after the decimal to look like the following for a quantity of 20:
Software Sales:
Regular Price of 20: 1799.00
Discounted 10%: 179.90
Net Price: 1619.10
The 20 and the 10% should be printed as variables and not hardcoded.
If the user enters 1 notice how the output would look:
Software Sales:
Regular Price of 1: 89.95
Discounted 0%: 0.00
Net Price: 89.95
The program should have only 1 return statement at the end of the program. There should not be an exit or break in the program.

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 Programming Questions!