Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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