Geeks Talk

Prepare for your Next Interview




Average Salary

This is a discussion on Average Salary within the Brainteasers forums, part of the Brain Gym category; 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 ...


Go Back   Geeks Talk > Brain Gym > Brainteasers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-27-2007
Expert Member
 
Join Date: Jan 2007
Location: Pune
Posts: 279
Thanks: 6
Thanked 4 Times in 4 Posts
smart_coder is on a distinguished road
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]:)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-28-2007
Contributing Member
 
Join Date: Feb 2007
Location: bangalore
Posts: 52
Thanks: 1
Thanked 11 Times in 9 Posts
neelim is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to neelim For This Useful Post:
  #3 (permalink)  
Old 03-28-2007
Expert Member
 
Join Date: Jan 2007
Location: Pune
Posts: 279
Thanks: 6
Thanked 4 Times in 4 Posts
smart_coder is on a distinguished road
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]:)
Reply With Quote
  #4 (permalink)  
Old 11-03-2007
Junior Member
 
Join Date: Nov 2007
Location: Hyderabad
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
jayavarakumar is on a distinguished road
Re: Average Salary

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

  Geeks Talk > Brain Gym > Brainteasers


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
What is the value for MAX(SALARY) Geek_Guest SQL 3 04-04-2007 04:01 AM
what is the average speed ? psuresh1982 Brainteasers 4 01-04-2007 04:51 AM
what is the average speed? psuresh1982 Brainteasers 2 11-28-2006 08:27 AM
In 24 Hours Average Human Lokesh M Geeks Lounge 0 09-29-2006 03:08 PM
Assessing Salary admin Career Advice 1 09-27-2006 05:23 AM


All times are GMT -4. The time now is 01:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved