Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java Programming. Please make sure program compiles, the code is copyable, and screenshots of the output are provided for 5 stars :-) 2) [8 points]
Java Programming. Please make sure program compiles, the code is copyable, and screenshots of the output are provided for 5 stars :-)
2) [8 points] You've been hired by Awesome Appliances to write a Java console application that calculates sale data. Prompt for and read the following information from a salesman: o Appliance name (Appliance the product to be sold. Use an enumerated type with the following six values: washer, dryer, refrigerator, microwave, toaster, stove. Use a validation loop and a try-catch block to insure that the appliance name is valid. Wholesale price (double) the price Awesome Appliances paid for the appliance. Use a validation loop to insure that the price is at least zero. Retail price (double the price Awesome Appliances is selling the appliance for. Use a validation loop to insure that the price is at least the wholesale price Format the following output in two columns with the first column containing a label and the second column containing the result. Format any dollar values to two decimal places. The three inputs. o The profit Awesome Appliances will earn selling the appliance (Retail Wholesale). o The 2% commission the Awesome Appliances salesperson will earn selling the appliance (Profit 0.02) The 6% Michigan sales tax on the appliance (Retail 0.06) The total cost to the customer (Retail Sales Tax Use constants for the 2% commission rate and the 6% sales tax rate. Include dollar signs in the outputStep 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