File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes probability of salary arriving on a friday Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "probability of salary arriving on a friday" Watch "probability of salary arriving on a friday" New topic
Author

probability of salary arriving on a friday

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
This one is easy; just came up on a lazy prod support 3rd shift.

Most of us get paid twice a month. And if the 15th or end of month falls on a weekend, the salary is paid on the friday.

Why is it that it seems that salary arrives more often on friday than any other day?

Show the reason why, as a probability.
Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
Probability of Salary Day being a Monday = 1/7
Probability of Salary Day being a Tuesday = 1/7
Probability of Salary Day being a Wednesday = 1/7
Probability of Salary Day being a Thursday = 1/7
Probability of Salary Day being a Friday = prob(Fri) + Prob (sat) + Prob(Sun)
= 1/7 + 1/7 + 1/7
= 3/7

Hence you feel that the salary mostly arrives on a Friday


-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
I think so too. Too easy isnt it?
Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
Frankly, Yes
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Yes this is the right solution that's why we usually thinks that we get our salary mostly on friday.










For new upcoming salary which I really got this month also on Friday. So that's why we use to celebrate "Good Friday.
Isn't it.


The Best way to predict your future is to create it - Every great individual common man
 
wood burning stoves
 
subject: probability of salary arriving on a friday