Question: Exercise 5 Write a program ( With flow chart and problem solving methodology ) that reads how much a customer spends on groceries and computes

Exercise 5
Write a program (With flow chart and problem solving methodology) 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 calculate and print the value of the coupon a person can receive based on groceries purchased. The program should display the message "Error: negative cost" if the user enters a negative groceries cost.
\table[[Money Spent,\table[[Coupon],[Percentage]]],[Less than $10,No coupon],[From $10 to $60,8%
Exercise 5 Write a program ( With flow chart and

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 Programming Questions!