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
Ruby has a DRF of 1.95 and a 6-month basic rate of $450. What is her annual
insens350 [35]
The answer on this question is D
6 0
2 years ago
Read 2 more answers
22.Lenin is preparing dinner plates. He has 12 pieces of chicken and 16 rolls. If he wants to make all the plates identicalwitho
Nitella [24]

Answer: The greatest number of plates Lenin can prepare = 4

and there will be 3 chickens and 4 rolls in each plate.

Step-by-step explanation:

Given: Lenin is preparing dinner plates. He has 12 pieces of chicken and 16 rolls.

To make all the plates identical without any food left over, the greatest number of plates Lenin can prepare = G.C.D.(12,16)=4

The number of pieces of chicken in each plate = \dfrac{12}{4}=3

The number of pieces of rolls in each plate = \dfrac{16}{4}=4

So,  the greatest number of plates Lenin can prepare = 4

and there will be 3 chickens and 4 rolls in each plate.

7 0
2 years ago
Jessica was sitting in row 9, seat 3 at a soccer game when she discovered her ticket was for row 1, seat 1. Write a rule to desc
Westkost [7]

rule is to  shift 8 units left & , shift 2 units down , Correct option C)  T<-8,-2> (Jessica) ,

<u>Step-by-step explanation:</u>

Here we have , Jessica was sitting in row 9, seat 3 at a soccer game when she discovered her ticket was for row 1, seat 1. We need to Write a rule to describe the translation needed to put her in the proper seat. Let's do this:

Suppose the above problem in coordinate system where we have a point P(9,3) , And we need to write rule for translation of this point to Q(1,1) .

Let , (x,y)=(9,3) , Now shift 8 units left i.e.

⇒  (x,y)=(9,3)

⇒  (x-8,y)=(9-8,3)

⇒  (x-8,y)=(1,3)

Now , shift 2 units down i.e.

⇒  (x-8,y)=(1,3)

⇒  (x-8,y-2)=(1,3-2)

⇒  (x-8,y-2)=(1,1)

Therefore , rule is to  shift 8 units left & , shift 2 units down , Correct option C)  T<-8,-2> (Jessica) ,

4 0
2 years ago
15 members of the Drama Club can make set decorations for their musical in 12 hours. After 4 hours have passed, a few teachers c
Serga [27]

Answer:

5 teachers

Step-by-step explanation:

We know that the 15 members finished 1/3 of the job in 4 hours. When the teachers came they finished 2/3 of the job in 6 hours. So they finished 1/3 of the join in 3 hours of we simplify it.

4 hour: 15 minutes

3 hour: ?

15/3 x 4= 20 teaches. Then we do 20-15=5 because there were originally 15 members.

4 0
2 years ago
kyle has 105 baseball cards and must give 2/5 of his cards away. how many cards will kyle give away? what fraction of his cards
adelina 88 [10]
He has 3/5 of his cards left because he had 62/105 of his cards and that simplified is 3/5
6 0
2 years ago
Other questions:
  • A golfer hits a golf ball at an angle of 25.0° to the ground. If the golf ball covers a horizontal distance of 301.5 m, what is
    5·1 answer
  • The College Board states that the average math SAT score is 514 with a standard deviation of 117. Colleen gathered data from 50
    9·2 answers
  • Kat is painting the edge of a triangular stage prop with reflective orange paint. The lengths of the edges of the triangle are (
    14·1 answer
  • Andrew has a new job at the local pizza store as a delivery boy. The following graph shows one of his deliveries he made. Analyz
    5·1 answer
  • What is a34 of the sequence 9,6,3,
    13·2 answers
  • You are moving and need a rental truck. The rental company you have chosen charges a
    5·2 answers
  • One candy making machine can produce 350 Swedish jelly candies per minute. At that rate, how many Swedish jelly fish candies cou
    15·1 answer
  • Based on daily measurements, Bob's weight has a mean of 200 pounds with a standard deviation of 16 pounds, while Mary's weight h
    10·1 answer
  • A food distributor is being sued for racial discrimination because 12% of newly hired candidates are not white when 53% of all a
    9·1 answer
  • Gary buried a time capsule in his backyard so that the top of the capsule was 1.81.81, point, 8 meters underground. He covered t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!