Question: USE JAVA Business ES.25 A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will

USE JAVA  USE JAVA Business ES.25 A supermarket awards coupons depending on how
much a customer spends on groceries. For example, if you spend $50,

Business ES.25 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. Here is a sample run: Please enter the cost of your groceries: 14 You win a discount coupon of 1.12. (8% of your purchase) Money Spent Less than $10 From $10 to $60 More than $60 to $150 More than $150 to $210 More than $210 Coupon Percentage No coupon 8% 10% 12% 14% s) import java.util.Scanner: * Code for E5.25 * gauthor public class GroceryDiscount public static void main (Stringtl args) scanner in = new scanner (System.in); System.out.print("Please enter the cost of your groceries:) double bill in.nextDouble(); double coupon- 0; /1 Your work starts below. Do not change the codes above. (- Business ES.25 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. Here is a sample run: Please enter the cost of your groceries: 14 You win a discount coupon of 1.12. (8% of your purchase) Money Spent Less than $10 From $10 to $60 More than $60 to $150 More than $150 to $210 More than $210 Coupon Percentage No coupon 8% 10% 12% 14% s) import java.util.Scanner: * Code for E5.25 * gauthor public class GroceryDiscount public static void main (Stringtl args) scanner in = new scanner (System.in); System.out.print("Please enter the cost of your groceries:) double bill in.nextDouble(); double coupon- 0; /1 Your work starts below. Do not change the codes above. (

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!