subject

So you have (hopefully) ? gured out how to use many random numbers to estimate the area of a circle; now let’s use the same technique to estimate the area covered by two partially over-lapping circles. both circles have radii of r = 0.6. one is centered at (xc, yc) = (0.4,0) while the other is centered at (xc, yc) = (? 0.4,0). since they are partially over-lapping, it is not very easy to calculate the area by hand – but your random number technique should work just ? ne. use about 1 random numbers, and give your answer with 5 signi? cant digits.(a) estimate the area a of the two over-lapping circles. note that a should include regions where either circle exists (i. e., the union of the two ) without running any additional random number simulations, can you estimate the area of the intersection between the circles (i. e., the area where they overlap? hint: use your estimated value of a and the known areas of the circles.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 16:50
Develop the program incrementally: a) start by reading and displaying each line of the input file to make sure you are reading the data set correctly. b) use the split string method to extract information from each line into a list. print the list to prove that this step is working correctly. d) convert the exam scores to type int and calculate the student’s average. display those items to prove this step is working correctly. e) create a tuple containing the six items for each student (name, exam scores, exam mean). display the tuples to prove this step is working correctly. (optionally, you may want to have the exam scores in a list so your tuple is (name, scores_list, f) append each tuple to a list. display the list to prove this step is working correctly. g) use the sort list method to re-order the tuples in the list. display the list to prove this step is working correctly. h) use a for statement to display the contents of the list as a table (with appropriate formatting). i) use a for statement to calculate the average of all scores on exam #1, then display the results. note that you could have calculated this average within the first loop, but we are explicitly requiring you to do this calculation by looping though your list of tuples. j) add the logic to calculate the average of all scores on exam #2, then display the results.
Answers: 2
question
Computers and Technology, 25.06.2019 10:20
Write a program that lets the user play the game of rock, paper, scissors against the computer. the program should work as follows. 1. when the program begins, a random number in the range of 1 through 3 is generated. if the number is 1, then the computer has chosen rock. if the number is 2, then the computer has chosen paper. if the number is 3, then the computer has chosen scissors. (don’t display the computer’s choice yet.) 2. the user enters his or her choice of “rock”, “paper”, or “scissors” at the keyboard. (you can use a menu if you prefer.) 3. the computer’s choice is displayed. 4. a winner is selected according to the following rules: • if one player chooses rock and the other player chooses scissors, then rock wins. (the rock breaks the scissors.) • if one player chooses scissors and the other player chooses paper, then scissors wins. (scissors cuts paper.) • if one player chooses paper and the other player chooses rock, then paper wins. (paper wraps rock.) • if both players make the same choice, the game must be played again to determine the winner. be sure to divide the program into functions that perform each major task. include the code and the console output from running your program with test inputs in your report.
Answers: 3
question
Computers and Technology, 25.06.2019 13:00
Self -concept is influenced by the values instilled in a person by his or her self-concept. self-fulfilling prophecy. self-evaluation. culture.
Answers: 1
You know the right answer?
So you have (hopefully) ? gured out how to use many random numbers to estimate the area of a circle;...
Questions
question
Mathematics, 24.03.2021 17:40
question
Mathematics, 24.03.2021 17:40
question
Spanish, 24.03.2021 17:40
question
World Languages, 24.03.2021 17:40
Questions on the website: 13722360