Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started