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’s the correct answer for this ?
icang [17]

Answer:

D.

Step-by-step explanation:

Since both the triangles as kept separately are similar, so we'll take proptionality of their sides to find one side

MP/ML=MN/MK

20/28=35/MK

CROSS MULTIPLYING

20×MK=28×35

MK=980/20

MK=49

5 0
3 years ago
Is 7, 20, 25 a right triangle?
love history [14]

Answer:

The answer to your question is below

Step-by-step explanation:

Process

To answer if they are right triangles or not use the Pythagorean theorem which states that the square of the hypotenuse equals the sum of the square of the legs.

a)    25² = 20² + 7²

      625 = 400 + 49

     625 ≠ 449              It is not a right triangle

b)   26² = 24² + 10²

      676 = 576 + 100

      676 = 676               it is a right triangle

c)   13² = 8² + (√10)²

     169 = 64 + 10

      169 ≠ 74                 it is not a right triangle

d)   52² = 48² + 20²

      2704 = 2304 + 400

      2704 = 2704               it is a right triangle

3 0
3 years ago
What is 60% of 125? Enter your answer in the box.
Law Incorporation [45]

Answer:

75

explanation: because i looked it up

7 0
3 years ago
a model car has a scale of 3 cm : 2 m. The length of the actual hood of the car is 1 m. What is the length of the model?
nadezda [96]
Yes
that it jusf de aima noi neo curh 
3 0
4 years ago
Which expression is equivalent to 2x^2 - 2x + 7?
IgorC [24]

Answer:

(o,7) vertical intercept

minimum (1/2 , 13/2)

4 0
3 years ago
Other questions:
  • write an equation in point-slope form of the line that passes through the point (4,−9) and has a slope of 6. PLEASE HELP I NEED
    6·1 answer
  • What is the simplified form of the following expression 7m2+6.5n-4n+2.5m2-n
    9·2 answers
  • Please need help to solve this
    9·1 answer
  • What is 9.36•10~4 in standard form
    10·1 answer
  • I dont know this one either
    12·1 answer
  • Lin Ying belongs to an athletic club. In 800 m races her times are normally distributed with mean 128 seconds and standard devia
    11·2 answers
  • Solve y + ^2∕7 &lt; ^1∕3.:
    13·1 answer
  • Dave's favorite baseball team has won 10 fewer games than Kimiko's favorite baseball team. Write an algebraic expression for the
    5·1 answer
  • What is the volume of a rectangular prism if the area is 30 square inches and the height is 3 inches?​
    7·1 answer
  • (-5, 10) (-5, 9) What is the slope?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!