Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Python Coding. Picture is included to clear all confusion. Techniques used will be object - oriented programming, structured programming, top - down coding. Produce
Using Python Coding. Picture is included to clear all confusion.
Techniques used will be objectoriented programming, structured programming, topdown coding.
Produce tested code that executes correctly and consistently.
Include comments and explanations of the structures used in the program eg Repetition, Decision, Lists etc. inside the program.
Debug program issues before submitting.
Be ready to explain ANY of the code you have used.
What is the probability in a room of n people,
that at least two people will have the same birthday?
Probability works such that:
Probability something happensProbability somethingdoesn t happen or
It turns out that finding the probability of no matching birthdays is much easier to
determine than some possible matching birthdays.
For each person starting with n calculate nBIRTHRAX PROBLEM
What is the probability in a room of people,
that at least two people will have the same birthday?
Probability works such that:
Probability something happensProbabilitysomethingdoesnt happen or
It turns out that finding the probability of no matching birthdays is much easier to
determine than some possible matching birthdays.
For each person starting with calculate then multiply the
result to the next person to calculate no one in a room having the same birthday.
Probability matching birthdays dots
dots,
where there is a term for each of the people.
Your task, is to write a program to calculate the probability that at least two
people DO share a birthday in the class right now. If your teacher has not already,
please remind them to write the number of people in the room right now.
In addition to submitting your code,
please also return this sheet with your answers written below.
In this room of
people, the probability of
at least two people sharing
the same birthday is:
For a probability, the minimum
number of people needed is:
then multiply the
result to the next person to calculate no one in a room having the same birthday.
Probability nomatching birthdays
times
times
times n
where there is a term for each of the n people.
Your task, is to write a program to calculate the probability that at least two
people DO share a birthday in the class right now. If your teacher has not already,
please remind them to write the number of people in the room right now.
In addition to submitting your code,
please also return this sheet with your answers written below.
In this room of
people, the probability of
at least two people sharing
the same birthday is:
For a probability, the minimum
number of people needed is:
n n
#People; Probability
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
n: ; Prob:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started