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.

![[Solved] ITSE2321 Program 5 Control Statements Part 2](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] ITSE2321 Program 2 users daily driving cost](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.