Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Are we maintaining too much redundant information?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago