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

computer science

Description

1.      A software company sells a package that retails for $99. Quantity discounts are given

according to the following table.

 

Quantity                                               Discount

10–19                                                  20%

20–49                                                  30%

50–99                                                  40%

100 or more                                         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

 

 

2.      Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1-10, the program should display an error message

 

3.      Serendipity Booksellers has a book club that awards points to its customers based on the

number of books purchased each month. The points are awarded as follows:

 

If a customer purchases 0 books, he or she earns 0 points.

If a customer purchases 1 books, he or she earns 5 points.

If a customer purchases 2 books, he or she earns 15 points.

If a customer purchases 3 books, he or she earns 30 points.

If a customer purchases 4 or more books, he or she earns 60 points.

 

Write a program that asks the user to enter the number of books that he or she has purchased

this month and displays the number of points


Related Questions in computer science category