subject

The Buffon Needle Experiment. The following experiment was devised by Comte Georges-Louis Leclerc de Buffon (1707-1788), a French naturalist. A needle length 1 inch is dropped onto paper that is ruled with lines 2 inches apart. If the needle drops onto a line, we count it as a bit. (See Figure 10.) Buffon discovered that the quotient tries/approximates pi. For the Buffon needle experiment, you must generate two random numbers: one to describe the starting position and one to describe the angle of the needle with the x-axis. Then you need to test whether the needle touches a grid line. Generate the lower point of the needle. Its x-coordinate is irrelevant, and you may assume its y-coordinate y_low to be any random number between 0 and 2. The angle alpha between the needle and the x -axis can be any value between 0 degrees and 180 degrees (pi radians). The upper end of the needle has y-coordinate y_high = y_low + sin alpha The needle is a hit if y_high is at least 2, as shown in Figure 11.Stop after 10,000 tries and print the quotient tries/. (This program is not suitable for computing the value of pi. You need pi in the computation of the angle.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
You know the right answer?
The Buffon Needle Experiment. The following experiment was devised by Comte Georges-Louis Leclerc de...
Questions
question
Health, 19.10.2020 14:01
question
Social Studies, 19.10.2020 14:01
question
Mathematics, 19.10.2020 14:01
question
Physics, 19.10.2020 14:01
Questions on the website: 13722361