Results 1 to 4 of 4

Thread: Average Salary

  1. #1
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Average Salary

    There are three friends. All three earns and have a fixed monthly salary.
    They sit together one day and tried to calculate their average salary.
    But the quest is that one cannot disclose his salary to other friends.

    How can they calculate their average salary?

    [B][COLOR="Blue"]Anyone who thinks he knows all the answers, must not be up-to-date on the questions[/COLOR][/B]
    [B]Anshul[/B]:)

  2. #2
    Contributing Member
    Join Date
    Feb 2007
    Answers
    47

    Re: Average Salary

    Suppose A,B,C are d 3 frnds.

    Now, A 's salary -- AS
    B's salary -- BS
    C's salary --- CS

    And A, to his salary adds a random no.(AR) and den tells dat to B.
    B also adds sm random number(BR) to his salary and adds to the number whatever A has given ie. AS+AR+BS+BR. and gives to C
    C also adds sm random number to his salary and adds dat to wtevr B has given him. AS+BS+CS+AR+BR+CR

    Now...
    A subtracts his random no. from the sum --- AS+BS+CS+BR+CR
    Then B 2 vl subtract his random no. --- AS+BS+CS+CR
    C 2 vl subtract -------------------- AS +BS +CS

    Now,after C is done..the result is divided by 3 --- which gives the average of the salary.

    From this,once d average is known..any of them cn knw d sum of d other 2 salaries


  3. #3
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Re: Average Salary

    Gud job neeliim

    [B][COLOR="Blue"]Anyone who thinks he knows all the answers, must not be up-to-date on the questions[/COLOR][/B]
    [B]Anshul[/B]:)

  4. #4
    Junior Member
    Join Date
    Nov 2007
    Answers
    1

    Re: Average Salary

    I have 2+ years of experience how much salary will take


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact