[Solved] ITSE2321 Program 5 Control Statements Part 2

$25

File Name: ITSE2321_Program_5__Control_Statements_Part_2.zip
File Size: 423.9 KB

SKU: [Solved] ITSE2321 Program 5 – Control Statements Part 2 Category: Tag:
5/5 - (1 vote)

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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ITSE2321 Program 5  Control Statements Part 2[Solved] ITSE2321 Program 5 Control Statements Part 2
$25