1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to yield the salary?

Discussion in 'PHP' started by superfries0, Dec 13, 2008.

  1. #1
    ey guys,

    i have a small task,
    there's a company where the sellers earn $900 in the month. depending on how much they sell makes it more than a lousy $900.
    they get 12.5% of the amount they sell and the maximum they can make out of that is $2100 ($2100 + 900).

    i dont get further because there are more than one man and i don't know well how it works with arrays. in the array you should put the information about the guys, and the endnumber to stop the array is 999.


    you should print the name of the seller and the salary he gets.

    i'm not so good in php so im calling in the help of anyone who knows something about this and likes to do a little test of what theyselve know about php.

    thanks in advance,
     
    superfries0, Dec 13, 2008 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    go through the array one by one, then do the calculation for each person.

    is this homework by chance?

    You don't learn by getting others to do for you...
     
    matthewrobertbell, Dec 13, 2008 IP