Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Do I need a loop for this - Java?


  • Please log in to reply

#1
rhymin

rhymin

    Member

  • Member
  • PipPipPip
  • 210 posts
I think I need a loop to say that if a salesperson meets 80% of the sales target, or $96,000 (because $120,000 * 80% equals $96,000), then the commission rate of 25% starts. But, the 25% commission only takes place until the salesperson hits $120,000. Once the salesperson exceeds $120,000, the acceleration factor of 1.25 begins. This will allow the salesperson to make a commission rate of 31.25% (25% * 1.25) for as much as he/she can sell for the year.

So:

>= 96,000 to <= 120,000 will allow the salesperson to start earning 25% commission.
> 120,000 will allow the salesperson to start earning 31.25% commission.
< 96,000 will not earn the salesperson any commission.

Does anyone have any idea how to write this?

Edited by rhymin, 03 March 2013 - 05:48 PM.

  • 0

Advertisements


#2
rhymin

rhymin

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 210 posts
I got it, nvm guys!

Edited by rhymin, 03 March 2013 - 10:32 PM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP