Question: A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth

A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent.

Money Spent Less than $10 From $10 to $60 More than $60

Write a program that calculates and prints the value of the coupon a person can receive based on groceries purchased.
Here is a sample run:

to $150 More than $150 to $210 More than $210 Coupon Percentage

Money Spent Less than $10 From $10 to $60 More than $60 to $150 More than $150 to $210 More than $210 Coupon Percentage No coupon 8% 10% 12% 14%

Step by Step Solution

3.36 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the provided table we can create a Python ... 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 Java Programming Questions!