Question: I need help with this ASAP! In Java, The examples are what the outputs should result in. Problem 2: A supermarket awards coupons depending on

I need help with this ASAP!

In Java,

I need help with this ASAP! In Java, The examples are what

The examples are what the outputs should result in.

Problem 2: 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. Write a program that calculates and prints the value of the coupon a person can receive based on groceries purchased. Example 1: Please enter the cost of your groceries: 14 You win a discount coupon of $1.12. (88 of your purchase) Example 2: Please enter the cost of your groceries: 8 You don't win a coupon Example 3: Please enter the cost of your groceries: 100 You win a discount coupon of $10.00. (108 of your purchase)

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!