Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions

Question

What, if anything, would you say to the provost?

Answered: 1 week ago

Question

6. What questions would you suggest should be included?

Answered: 1 week ago

Question

5. Who should facilitate the focus group?

Answered: 1 week ago