Answered step by step
Verified Expert Solution
Question
1 Approved Answer
do this in python QUESTION 18 A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50,
do this in python
QUESTION 18 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 8% of that amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent. Write a program that asks the user to enter the cost and the program calculates and prints the value of the coupon a person can receive based on groceries purchased. If the user enters a negative cost, the program will exit. Here is the same run Please enter a cost of your groceries 14 [Enterl You win a discount coupon of S1.12. (8% f your purchase) Money Spent Less than $10 $10 S59 $60 $149 $150 S209 $210 or more Coupon Percentage No Coupon 8% 10% 12% 14%Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started