Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you are a computer salesman and your income depend on the total sales and comm issions earned for the computers that you sell. Commission

Suppose you are a computer salesman and your income depend on the total sales and comm issions
earned for the computers that you sell. Commission rates vary depending on how many units you sold
(see chart below). Your income equals to the total sales plus the commission where the commission
equals to total sales times the commission rate. That is, commission = total sales * commission rate and
income = total sales + commission.
Total Sales
Provide the user the commission rate list above.
After displaying the list, prompt the user to input the total sales.
Display the total income.
Input: The input to your program will be from the keyboard (using Scanner).
Output: The output of your program should be to the screen and include the correct answers.
Run: Run it three times to be sure all possible values of the if logic works correctly.
Sample Run
Tctal Sales
Less than 200 sold
Greater or equal to 200 sold
Greater or equal to 400 sold
Enter total sales: 256
Saleman's tctal sales is 250.0 and comision is 25.0
Saleman's income is $275.6
Total Sales
Less than 280 sold
Greater or equal to 200 sold
Greater or equal to 480 sold
Enter total sales: :58
Saleman's total sales is 150.0 and comision is 12.0
Saleman's income is $162.0
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

Explain the seven dimensions of an organizations climate.

Answered: 1 week ago

Question

2 What supply is and what affects it.

Answered: 1 week ago

Question

3 How supply and demand together determine market equilibrium.

Answered: 1 week ago