Question: 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 :-)

Java Programming. Please make sure program compiles, the code is copyable, and

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 output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!