If there is a group of n people in a room, what is the probability that two or more of them having same
birthday? It is possible to determine answer to this question by simulation. (Hint: You can generate
random dates, n times and determine the fraction of people who born in a given day). Write a function
that determines the answer to this question by simulation. The program you write can take n as the
input and prints out the probability that two or more of n people will have the same birthday for
n=2,3,4…. 40...Flow chart also.
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-45468.pdf
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment