A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you

Question:

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 eight percent of that amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent.

image text in transcribed

Write a program that calculates and prints the value of the coupon a person can receive based on groceries purchased.
Here is a sample run:

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Big Java, Enhanced Early Objects

ISBN: 9781119499091

7th Edition

Authors: Cay S Horstmann

Question Posted: