Question: Find the answer to this problem by coding it in the computer program python. I am having trouble with the coding it. Consider a needle
Find the answer to this problem by coding it in the computer program python. I am having trouble with the coding it.

Consider a needle of length L 100 that is dropped somewhere onto the middle of a piece of lined paper such that the separation between adjacent lines is d 2.Once dropped, the needle's position is determined by the position of its midpoint, x, and its rotation from the vertical, o Part A Suppose x and 6 are each determined by drawing from a random uniform distribution (from 0 to d and from 0 to 2T , respectively). Perform 10,000 drops and, for each, determine how many lines the needle crosses. Summarize your results with a histogram. What is the average number of crossings? Part B Repeat part A, but now suppose the angle is drawn from a normal distribution with a mean value 0 and o 0.3. This models some level of control (if the person is trying to drop the needle vertically, but can't do so reliably)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
