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
What is the missing number? 7 1 1 B​
eduard

Answer:

1/8

Step-by-step explanation:

6 0
3 years ago
Find the value of x
lbvjy [14]

Answer:

x = 14.5

Step-by-step explanation:

Exterior angle thm

<C = <D

7x - 2 = 9x - 31

7x - 9x = -31 + 2

-2x = -29

x = 14.5

5 0
3 years ago
Find mZA. Round the answer to the nearest whole degree.<br> A. 31°<br> B. 499<br> C. 650<br> D. 90°
choli [55]

Answer:

I haven't done this in a while but I'm pretty sure it's C.

Step-by-step explanation:

A triangle has to have 180 degrees. angle a and c are congruent. angle b is slightly smaller. therofore, istead of all the angles biegh 60, a and c are 65 thus leaving angle b 50 degrees

7 0
3 years ago
Suki has a 9 foot by 12 foot oriental rug. She is making a scale drawing of the rug that is 1 foot long. How many inches wide sh
Gala2k [10]
The diagram will be 108 inches wide
5 0
3 years ago
Read 2 more answers
Melissa Silva borrowed $6,300 from the bank. If she has already repaid 2/7 of the loan, what is the remaining balance owed to th
lara31 [8.8K]
Dear,
Answer is provided in the attached image
7 0
3 years ago
Other questions:
  • (scatter plots) PLEASE HELP ONE QUESTION!!!! THANK YOU SO MUCH!!!
    7·2 answers
  • The sum of number and 12 is 30 . determine the number
    5·1 answer
  • What is the unit rate of change of 8 units in d with respect to 3 units in t
    14·2 answers
  • 25 pounds of dog food at $1.25 per pound
    12·2 answers
  • 1: if Tim does not buy DEF, how many can he spend on ABC?
    10·1 answer
  • ....need help on this ​
    15·1 answer
  • Are the polygons similar? If they are, write a similarity statement and give the scale factor.
    8·1 answer
  • Y= 5x+3 find the slope m=
    13·2 answers
  • Please give me the answer to this<br> whoever gets it right first will get brainliest
    11·1 answer
  • What is the GCF of <br><br> 2X^3+3X^2+8X+12
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!