1. A mall in Oman wants you to create a program that they can use to compute for the discounts to be given to shukran card holders. The program should prompt the user to enter the name of the customer...


1. A mall in Oman wants you to create a program that they can use to<br>compute for the discounts to be given to shukran card holders.<br>The program should prompt the user to enter the name of the<br>customer and the number of purchases. The number of purchases<br>will serve as the counter for the number of times purchase amount<br>will be entered by the user. The program should be able to count<br>the number of purchase amounts in each of the following ranges:<br>•1 to 10<br>• 11 to 30<br>• Above 30<br>The program should also compute the sum of all the purchase<br>amounts. A discount is computed based on the sum of the<br>purchase amount. If the sum of the purchase is more than 500, the<br>discount is 2.5% of the sum; otherwise, the discount is 5% of the<br>sum. Display an appropriate output.<br>

Extracted text: 1. A mall in Oman wants you to create a program that they can use to compute for the discounts to be given to shukran card holders. The program should prompt the user to enter the name of the customer and the number of purchases. The number of purchases will serve as the counter for the number of times purchase amount will be entered by the user. The program should be able to count the number of purchase amounts in each of the following ranges: •1 to 10 • 11 to 30 • Above 30 The program should also compute the sum of all the purchase amounts. A discount is computed based on the sum of the purchase amount. If the sum of the purchase is more than 500, the discount is 2.5% of the sum; otherwise, the discount is 5% of the sum. Display an appropriate output.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here