Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in java that will determine if a given shopper is a savvy shopper or not. A savvy shopper is someone whose average

Write a program in java that will determine if a given shopper is a savvy shopper or not. A savvy shopper is someone whose average cost per item is less than $10.00.If a given shoppers average cost per item is greater than or equal to $10.00 they do not get any special comments. You will prompt the user for input using either Scanner or JOptionPane, whichever you prefer. Use a constant (declare a double along with the keyword final) to store the value 10.00. Comments are required for this assignment. Inputs: Number of items Total amount paid Outputs: Average cost per item If and only if they are a savvy shopper, output You are a savvy shopper! Output an appropriate Thank you message of your choice

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

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

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

How would you approach this unit?

Answered: 1 week ago

Question

Is having a positive self-concept really all that important?

Answered: 1 week ago