1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Georgia [21]
3 years ago
9

Write a short python program to simulate flipping a coin - generate a random number between 0 and 1, calling numbers < .5 tai

ls and numbers >=.5 heads. have it run 10 iterations and present the number if heads. run this 10 times, recording the number of head for each trial. compute the average and standard deviation of the trial runs. (you could have the program repeat the trials ten times and have the program compute the statistics. you could also use a spreadsheet to compute the statistics.)
Mathematics
1 answer:
mr_godi [17]3 years ago
6 0
Try this:
import random
tries = 0
while tries < 100:
tries += 1
coin = random.randint(1, 2)
if coin == 1:
print('Heads')
if coin == 2:
print ('Tails')
total = tries
print(total)
You might be interested in
Can anybody help me with this problem?
vazorg [7]

Answer:

1

Explanation:

According to the Unit Circle, sin π\6 is ½, so we plug this into the cosine function to get this:

cos π\6 - π\6 → cos 0 >> 1

If you are ever in need of assistance, do not hesitate to let me know by subscribing to my You-Tube channel [USERNAME: MATHEMATICS WIZARD], and as always, I am joyous to assist anyone at any time.

** I do not have Unit Circle video uploaded yet, but if I need to, just notify me in the comments or on of course, You-Tube.

*** Plus, we need to make sure that the x-value falls in between 0 and π\2, which it did, so no need to worry.

8 0
3 years ago
HELP!!! DUE SOONNN TY TY
Ahat [919]

11.5 x 2= 23 and 18 plus 5 = 23 so the answer would be 11.5

Hope this helps ;)

8 0
4 years ago
More points!! Please solve 22 and 23
nadya68 [22]
For the table, we can count the circles that appear in each step of the fractal. The center is a single circle and is step 0. Step 1 sees 4 circles grow off of that one circle. Step 2 sees 4 circles grow off of each of these circles. Therefore the table should be:

Step 0 : 1 circle
Step 1 : 4 circles
Step 2 : 16 circles
Step 3:  64 circles

Using this table, we can solve the second part. This function is exponential growth and each step is a multiple of 4. Therefore, the function is f(x) = 4^x.
8 0
4 years ago
If m ≤ f(x) ≤ M for a ≤ x ≤ b, where m is the absolute minimum and M is the absolute maximum of f on the interval [a, b], then m
Korvikt [17]

Answer:

The final integration in the given limits will be 89.876

6 0
3 years ago
What is the slope of the line? y+3= -4(x+7)
ZanzabumX [31]

Answer:

Slope = -8.000/2.000 = -4.000

 x-intercept = -31/4 = -7.75000

 y-intercept = -31/1 = -31.00000

Step-by-step explanation:

1: Graph of a Straight Line

2: Calculate the Y-Intercept

3: Calculate the X-Intercept

4: Calculate the Slope

5: Geometric figure: Straight Line

Answer: Slope = -8.000/2.000 = -4.000

Hope this helps.

5 0
3 years ago
Read 2 more answers
Other questions:
  • Find the perimeter and the area of the given figure:<br><br> PLSSSSSSSSSSSSSSSSSS
    12·2 answers
  • What is the equation of the line?<br><br>​
    7·2 answers
  • Which is the better buy $6 for 3 packages or $5 for 2 packages
    13·2 answers
  • Find the max/min value of f(x) = 2x2 + 3x - 5
    11·1 answer
  • X= <br> solve the following <br> x^2-2x-24=0<br><br> x^2-11x+18=0
    6·1 answer
  • Use the order of operations to simplify the expression.80 - 16 ∙ 4 + 136 ÷ (-17)
    13·2 answers
  • What's 510-270 what's the correct answer?
    12·2 answers
  • Worth 10pts can someone help?
    11·1 answer
  • Your grandparents deposited $5500 into a college savings account for you 3 years
    9·1 answer
  • Find the product of ( x + 4) (x^2 + 3x + 2). QUICK
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!