Answered step by step
Verified Expert Solution
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 sold
Greater or equal to sold
Greater or equal to sold
Enter total sales:
Saleman's tctal sales is and comision is
Saleman's income is $
Total Sales
Less than sold
Greater or equal to sold
Greater or equal to sold
Enter total sales: :
Saleman's total sales is and comision is
Saleman's income is $
Step 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