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 to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students explore these related Databases questions

Question

What is a verb?

Answered: 3 weeks ago