Question: Rewrite Programming Exercise 5.39 as follows: ? Use a for loop instead of a do-while loop. ? Let the user enter COMMISSION_SOUGHT instead of fixing

Rewrite Programming Exercise 5.39 as follows:

? Use a for loop instead of a do-while loop.

? Let the user enter COMMISSION_SOUGHT instead of fixing it as a constant.

You have just started a sales job in a department store. Your pay consists of a base salary and a commissions. The base salary is $5,000. The scheme shown below is used to determine the commission rate.

Sales Amount Commission Rate 8 percent s0.01-S5,000 10 percent S5,000.01-S10,000 12 percent

Sales Amount Commission Rate 8 percent s0.01-S5,000 10 percent S5,000.01-S10,000 12 percent $10,000.01 and above

Step by Step Solution

3.34 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Financial application to find the sales amount usercanenter the COMMISSIONSOUGHT use for loop Needed ... View full answer

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 Java Programming Questions!