Question
Program in Java please Your company pays salespeople on a commission basis. The following is the a chart of the commission rates paid to sales
Program in Java please
Your company pays salespeople on a commission basis. The following is the a chart of the commission rates paid to sales people.
Commission Rate on Sales | Sales Greater Than | Sales Less Than or Equal To |
1% | $0 | $25,000 |
2% | $25,000 | $75,000 |
3% | $75,000 | $150,000 |
4% | $150,000 | $250,000 |
5% | $250,000 |
|
In this assignment you are to ask the user to enter their sales and output the amount of their commission.
Hint: Numbers cannot have commas (,) in them, both input by the user and in your mathematical expressions. Numbers printed to the screen can have commas in them, use the printf method with the specifier $%,1.2f"
Hint: percent signs (%) cannot be used in mathematical expressions, the value 1% should be expressed as .01
Hint: Students often find this assignment difficult. Remember that the commission structure is progressive. The amount are calculated by adding the commission on the lower brackets (the commission brackets that are less than sales) and the commission on part of the sales in the highest bracket.
Some check figures for you:
Sales | Commission |
$15,000 | $150 |
$50,000 | $750 |
$100,000 | $2,000 |
$200,000 | $5,500 |
$400,000 | $15,000 |
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