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
Get step-by-step solutions from verified subject matter experts
