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
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.
tableMoney Spent,tableCouponPercentageLess than $No couponFrom $ to $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
