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
There are 12 grams of sugar in 1⁄3 of a piece of candy. How much sugar is in 3⁄4 of a piece of candy?
lisov135 [29]

Answer:

27 grams of sugar

Step-by-step explanation:

If 1/3 candy contains 12 grams of sugar

Then 3/4 candy contains C grams of sugar

C= 3/4 * 12grams➗1/3=3*12*3grams➗4=108grams➗4=27 grams of sugar

4 0
3 years ago
Stephen says that the numbers 38 and 40 are relatively prime. Explain why he is incorrect in making this statement. (make a good
Paha777 [63]

Answer:

He is incorrect in this statement because 38 and 40 both have factors, other than 1 x itself. Prime numbers are numbers the only have 1 factor pair, and that is 1 x itself. Factors are the numbers you multiply to get the end result, and an example is 10x4=40. The factors of 40 are 8x5, 4x10, 2x20, and of course, 1x40. The factors of 38 are 2x19, and 1x38.

8 0
3 years ago
Sam needs a web designer. Designer A is offering her services for an initial $510 in addition to $80 per hour. Designer B is off
lutik1710 [3]

Answer:

The answer is when they work 4 hours  x=4

Step-by-step explanation:

510 + 80x = 650 + 45x

80x - 45x = 650 - 510

35x = 140

x = 140/35

x = 4 hours

3 0
4 years ago
Find the value of (1/5)⁻² + (1/2)⁻³ + (1/4)⁻¹ <br><br><br><br>​
evablogger [386]

Answer:

Answer = 37

Step-by-step explanation:

= (5)² + (2)³ + (4)¹

= 25 + 8 + 4

= 37 Answer

5 0
3 years ago
Read 2 more answers
Need help on this please
uranmaximum [27]
7/8% is .875 as a decimal.
4 0
3 years ago
Read 2 more answers
Other questions:
  • What is the standard form of (7 - 51)(2 + 3)?
    8·2 answers
  • How many times does 150 go into 44?
    14·2 answers
  • Proportions in Triangles (5)
    11·1 answer
  • Does anybody know about this I'm stuckes it's about angles ​
    13·2 answers
  • Points B, D, and F are midpoints if the sides of ACE. EC=38 and DF=16. Find AC
    8·1 answer
  • What is 12x34(234)+123x234
    13·2 answers
  • Pls help me I will give the first answer brainlyist and thanks NO LINKS OR NO BRAINLYIST there are two questions please help
    7·1 answer
  • Cp=Rs6250 loss%=4% find sp​
    9·1 answer
  • Simplify 3(8x+2y)<br> A. 30x+y<br> B. 24x+2y<br> C. 24x+6y<br> D. 30xy
    7·1 answer
  • f(x) = –25 + 5xA) Graph the function and find it’s intercepts. B) what does each intercept represent?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!