Question: Design a well documented python function coinToss(N) to simulate the experiment of tossing 100 unbiased, fair coins in N trails. Record the number of times

Design a well documented python function coinToss(N) to simulate the experiment of tossing 100 unbiased, fair coins in N trails. Record the number of times that the number of coins is exactly fifty heads for each trial. Have the function coinToss(N) return the number of times exactly fifty heads occurred divided by the number of trials.
 Design a well documented python function coinToss(N) to simulate the experiment
of tossing 100 unbiased, fair coins in N trails. Record the number

Page Question 1 (20 points) Design a well-documented, Python function coinToss(N) to simulate the experiment of tossing 100 unbiased, fair coins in N trials. Record the number of times that the number of coins is exactly fifty heads for each trial. HEAD TAIL #1. Simulate 100 Fair Coins Tossed 95 96 97 98 99 100 46 48 #2. Count How Many Heads #3. Success is Defined when EXACTLY 50 Heads Is Simulated NO SUCCESS 95 96 9798 99 100 48 49 50 SUCCESS In the illustration below, coinToss(5) returns 2/5 to the calling program because in two of the five trials exactly fifty heads was observed twice. Have the function coinToss(u) return the number of times exactly fifty heads occurred divided by the number of trials

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!