Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is a verb?

Answered: 1 week ago