Starting from:

$25

ITSE2321- Program 5 Solved

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

 

Quantity
Discount
10 - 39
10%
40 - 65
18%
66 - 90
27%
91 - 120
35%
121 – 199
42%
200 or more
48%
 

Write a program that asks for the number of units sold (validate the data) and computes the total cost of the purchase and the savings due to the discount applied.  The program should also display the number of units purchased and the discount in percentage.  The output should include the following text:

 

Number of units purchased is:

Discount applied is:

Total savings due to discount is:

The total cost of the purchase is:

 

Do NOT use any logical operator in the program.  You will not receive credit for the program if you do.

 

Run your program three times with 5, 66, and 210 as the user input for the number of units purchased.

 

Create a folder named, fullname_program5.  Copy your source code and the output file to the folder.  Zip the folder and upload it to Blackboard.

 

More products