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

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

Quantity 10-19 20-49 50-99 100 or more Discount 20% 30% 40% 50%

Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

Quantity 10-19 20-49 50-99 100 or more Discount 20% 30% 40% 50%

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sample Output Enter the number of packages purchased 1... View full answer

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 Starting Out With Java From Control Structures Questions!