Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve the given question using nested branches and alternative using python( spyder ). i need clear solution as well as use this type of format

solve the given question
using nested branches and alternative
using python( spyder ).
i need clear solution
as well as use this type of format
example
print ("%-20s%-20.3f%-20d"%("",value,value)) image text in transcribed
Exercise 5 Write a program that reads how much a customer spends on groceries and computes the discount coupon that a customer will be awarded. The following table shows the percent used to calculate the coupon awarded for different amounts spent. Your program should calculates and prints the value of the coupon a person can receive based on groceries purchased. Money Spent Less than $10 From $10 to $60 More than $60 to $150 More than $15O to S210 More than $210 Coupon Percentage No coupon 8% 10% 12% 14% Please enter the cost of your groceries: 14 You win a discount coupon of S 1.12. (8% of your purchase) Figure 5: Sample run of Exercise5

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

More Books

Students also viewed these Databases questions

Question

Describe how nerve cells communicate with other nerve cells.

Answered: 1 week ago

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago