Average Salary Puzzle


Eight software engineers are sipping coffee at cafe coffee day. They wish to compute their average salary. However, nobody is willing to reveal  information about his/her own salary to anybody else and they can not ask salary directly/indirectly to any other employee. How do they do it?

Comments

  1. Take an empty box. Each individual needs to pay their coffee bill based on their salary. They should keep their amount into the box(without anyone's notice)
    For example, assume the total coffee bill for everyone is 8*100=800 Rupees. if salary if E1 is 8 lakhs, hee needs to add 8/- into the box. if E2 salary is 13 lakhs, he needs to add 13/- into the box. The box is given to the coffee shop owner.
    1. If the change returned by the owner of coffee shop is X, Their average salary is (800+X)/8
    2. If the remaining change demanded by the owner is X, Their average salary is (800-X)/8

    ReplyDelete
    Replies
    1. Thats not accurate answer. But you are too close.

      Delete

Post a Comment

Popular posts from this blog

Disable or enable proxy for Internet explorer or Chrome

chm viewer unable to show contents

3 prisoners and 5 hats puzzle