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
SCORPION-xisa [38]
4 years ago
7

Clay is playing darts. his dartboard contains ten equal-sized zones with point values from 1 to 10. write code that simulates hi

s total score after 1000 dart tosses. make sure to use a for loop.
Mathematics
2 answers:
Zarrin [17]4 years ago
8 0
Instead of a real language, I'll use pseudo code here: 


var TOTAL_SCORE = 0
for(var x; i<1000; i++) {
      var SCORE rand.random_integer[from 1-10];
      var TOTAL SCORE = TOTAL_SCORE + SCORE;
}

print(TOTAL_SCORE);
    
allochka39001 [22]4 years ago
6 0

Answer:

Given parameters

Point values = 1 to 10 = 1,2,3...10

Dart tosses = 1000

Required:

Simulate total scores using a for loop

#This program is written using Python Programming Language

# Comments are used for explanatory purpose

#Program starts here

# The next line declares and initialize point_value as an array

point_value = make_array(1,2,3,4,5,6,7,8,9,10)

# The next line initializes total_score to 1

total_score =make_array(0)

# Initialise number of toss

tosses = 1000

# Simulate using for loop iteration

for i in np.arange(tosses)

result = np.random.choice(point_value)

# get score after playing each toss

total_score=np.append(total_score, result)

#calculate totalscores after 1000 games

totalscore=sum(total_score)

#Output result

print("The total score after simulation of 1000 tosses is ")

print(totalscore)

#End of program

You might be interested in
Don’t understand this question
AleksandrR [38]
I believe it would be A D E
not positive but pretty sure
3 0
3 years ago
What is the standard form of a liner equation?
creativ13 [48]
Pretty sure the answer is A
8 0
4 years ago
Ellen purchased two binders for $1.25 each, two binders for $3.75 each, two packs of paper for $1.50 each, four packs of pens fo
laiz [17]

Answer:

$29

Step-by-step explanation:

2*1.25

2*3.75

2*1.5

4*1.75

4*2.25

multiply these and add them all up and you get 29

6 0
4 years ago
Read 2 more answers
HELP ME !! AND EXPLAIN HOW YOU GOT IT.
Juli2301 [7.4K]

Answer: G = 50°, I = 50°, H = 80°

Step-by-step explanation:

First and foremos, the sum of three angles of a triangle is 180°

2x + 2x + (4x - 20) = 180°

8x - 20 = 180°

8x = 180° + 20 (adding 20 on both sides)

8x = 200°

x = 200/8

x = 25

The value of the angles can be found by replacing the value of x with 25

2x = 2 x 25 = 50°

Therefore, the angle of two angles are 50°

And the other is (4 x 25) -20 = 80°

4 0
3 years ago
Please help asap (first to answer correctly gets brainlyist)
Debora [2.8K]

The answer is D (0,-8)

8 0
4 years ago
Other questions:
  • Jamie has 7/10 of a pound of chicken to cook for dinner. If she is going to split the chicken between 3 people, how much chicken
    10·1 answer
  • Simplify the expression 1/(x^4)^-2
    12·1 answer
  • The angle is to be reflected over the line shown. What would be the measure of the reflected angle?
    10·2 answers
  • Can someone please help me with this and show work
    14·1 answer
  • PLZZZZZ help A car's gas tank that is 40% full contains 12 gallons of gas. Show the math you used to find the maximum capacity o
    14·1 answer
  • Jeremy plans to construct a storage building that
    15·1 answer
  • What is the arc length when θ = 3 pi over 5 and the radius is 7 cm? (5 points)
    13·1 answer
  • Connor wants to attend the town carnival. The price of admission to the carnival is $4.50, and each ride costs an additional 79
    11·1 answer
  • Evaluate the expression, showing work please<br> 5((8+2)+3(6-3))
    9·1 answer
  • What is 145000(1 + 5.8%/12) ^ (12 •15)
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!