answer.
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]
2 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]2 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]2 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
Ari mixed 2 1/4 cups of red grapes with 1/2 cups of green grapes. He then divided the grapes into bags with 3/4 cup of mixed gra
Oxana [17]

To start, our equation will look like this:

(2 1/4 + 1/2)/ 3/4 = b

To make it easier convert the 2 numbers inside the parentheses into improper fractions, and then multiply them by their least common denominator to add.

(9/4 + 1/2)

(18/8 + 4/8)

(22/8)/ 3/4 = b

Now, to divide 22/8 cups of grapes into bags with 3/4 cup of grapes, multiply 22/8 by 4/3.

(22/8)(4/3)=b

3 2/3 = b

So, if Ari has a bag with 2 1/4 cups of red grapes and 1/2 cup of green grapes, and he divides it into bags with 3/4 cup each, he will have about 3 full bags.

6 0
2 years ago
Read 2 more answers
Parker is testing 2 different types of ant killer in his yard. He purchases Brand A and Brand B from the home improvement store.
harkovskaia [24]
His conclusion wouldn't be valid because he didn't apply them on the same day. So, Brand A if applied first would be ahead of brand B which was applied 5 days later. Hope this helped!
6 0
2 years ago
Read 2 more answers
Sam painted 3 pictures.ellie painted twice as many pictures as Sam how many pictures did they paint altogether
zepelin [54]
Sam painted 3
ellie painted 2x3, so she painted 6
6+3=9
together they painted 9 pictures
3 0
2 years ago
Read 2 more answers
Explain which method you used for solving the system of equations in which x represents the number of bottles of water sold and
bogdanovich [222]

Answer: Sample Response :Use the linear combination method.

Multiply the first equation by –2 to create opposite terms for x.

Multiply the first equation by –4 to create opposite terms for y.

Add the system of equations to eliminate a variable.

Step-by-step explanation:

9 0
2 years ago
Read 2 more answers
Taylor surveys students in one grade level who own at least one pet. She finds that 50% of the students surveyed own 2 pets, 3 s
seraphim [82]
I think that A is the correct answer.
4 0
2 years ago
Read 2 more answers
Other questions:
  • Nick is 30 years less than 3 times Rays age. If the sum of their ages is 74,how old are each of the men? Solve and write an equa
    6·1 answer
  • A store manager is looking at past jewelry sales to determine what sizes of rings to keep in stock. The list shows the ring size
    6·2 answers
  • A lamp shade has a radius of 9 inches. What is the circumference of the top of the shade? Use 3.14 to approximate pi. Round your
    11·1 answer
  • A square rotated about its center by 360º maps onto itself at _____ different angles of rotation. You can reflect a square onto
    5·1 answer
  • What's the unit rate 975 revolutions in 3 mins​
    11·1 answer
  • Janis was offered two different jobs when she graduated from college. She made the graph and table to show how much she would ea
    5·2 answers
  • Stefan's family rented a rototiller to prepare an area in their backyard for spring planting. The rental company charged an init
    5·2 answers
  • 1. WHEELS Zack is designing wheels for a concept car.
    8·1 answer
  • How can you write arithmetic and geometric sequences using recursive and explicit formulas modeled in a real world context?
    9·1 answer
  • Polygon ABCD is plotted on a coordinate plane. If the polygon translates 3 units to the left and 1 unit down, the length of diag
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!