Question: 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))  solve the given question using nested branches and alternative using python(

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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!