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

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!