Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Math....
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TokenHerbz




PostPosted: Fri Feb 15, 2008 1:43 am   Post subject: Math....

Say you have a deck of cards..

52 cards... Heres the questions..

A) Whats the odds to draw 1 number from the deck.
B) Whats the odds to draw 2 of the same numbers from the deck.
C) Whats the odds to draw 3 of the same numbers from the deck.
D) Whats the odds to draw 4 of the same numbers from the deck.


Answer A) 4/52 --> 1 / 12 to draw 1 number from the deck...
Answers should be in smallest forms possible!!! ENJOY!!
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Fri Feb 15, 2008 2:49 am   Post subject: RE:Math....

I don't get how you got A.. Maybe I don't understand the wording. A standard deck has the number 2-10 for each suit. There are 4 suits so there's a total of 9*4 = 36 numbered cards out of 52. So the odds should be 9/13.

Then B would be A*(3/51) = 9/221
C would be B*(2/50) = 9/5525
D would be C*(1/49) = 9/270725

nvm I get it now.. You mean a specific number. In that case,

A = 1/13
B = A*(3/51) = 1/221
C = B*(2/50) = 1/5525
D = C*(1/49) = 1/270725
TokenHerbz




PostPosted: Fri Feb 15, 2008 9:06 pm   Post subject: RE:Math....

hmm i got slightly different some how..

4/52 * 3/51 * 2/50 * 1/49 = 24/6497400 --> 1/270725

soo...

A = 4/52 --> 1 / 12
B = 4/52 * 3/51 = 12/2652 --> 1 / 221
C = 4/52 * 3/51 * 2/50 = 24/132600 --> 1/5525
D = 4/52 * 3/51 * 2/50 * 1/49 = 24/6497400 --> 1/270725

??hmm??... can someone double check?]

Another thing Zylum, if you do these 2 calculations they make different answers..

1/12 * 3/51 = 3/612 --> 1/204 VS..
4/52 * 3/51 = 12/2652 --> 1/221

I might be wrong on how to multiply fractions, but i thought it was multiply TOPS with TOPS, and BOTTOMS with BOTTOMS..
but for some reason i was thinking of cross miltiplactions with fractions... But i been out of school for so long, so some info would be really sweet.
TokenHerbz




PostPosted: Fri Feb 15, 2008 9:17 pm   Post subject: RE:Math....

OMFG --- NOOOOOB Mistakes on both our parts..


Breaking 4/52 is ::: 1/13 :: not 1/12

i guess we shouldn't assume stuff lol
md




PostPosted: Fri Feb 15, 2008 11:42 pm   Post subject: RE:Math....

When you assume you make an ass out of you.

That is all.
zylum




PostPosted: Sat Feb 16, 2008 6:03 pm   Post subject: RE:Math....

Indeed, a dumb mistake.. I fixed my earlier post and I come up with the same answers. Also, yes you multiply fractions by multiplying the numerators with each other and denominators with each other. For division you multiply the first by the reciprocal of the second which I guess is the same as cross multiplication.
OneOffDriveByPoster




PostPosted: Sat Feb 16, 2008 6:38 pm   Post subject: Re: RE:Math....

md @ Fri Feb 15, 2008 11:42 pm wrote:
When you assume you make an ass out of you.

That is all.
I believe the saying goes "When you Ass_U_Me you make an ass out of you and me".
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: