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
Katyanochek1 [597]
3 years ago
13

In a for loop, is it possible to use indexing?

Mathematics
1 answer:
kenny6666 [7]3 years ago
4 0

Answer:

Yes

Step-by-step explanation:

A for loop basically relies on repeating the same code for a pre-set number of times. During which you can make any code repeat inside of it, including indexing through a type of list. Many times a for-loop will use the indexes in a list to calculate the number of times that the loop has to repeat. This is usually done in order to search or apply changes in an array of other types of data structures that have countless values stored in it.

You might be interested in
Hey can someone tell me what -3x^2(14x^2-2x-8) equals
Ad libitum [116K]

Answer:

-42x^4 + 6x^3 + 24x^2

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
Assume that X is normally distributed with a mean of 20 and a standard deviation of 2. Determine the following. (a) P(X 24) (b)
Tems11 [23]

Answer:

a) P( X < 24 ) =  0.9772

b) P ( X > 18 ) =0.8413

c) P ( 14 < X < 26) = 0.9973

d)  P ( 14 < X < 26)  = 0.9973

e) P ( 16 < X < 20)  = 0.4772

f) P ( 20 < X < 26)  =  0.4987

Step-by-step explanation:

Given:

- Mean of the distribution u = 20

- standard deviation sigma = 2

Find:

a. P ( X  < 24 )

b. P ( X  > 18 )

c. P ( 18 < X  < 22 )

d. P ( 14 < X  < 26 )

e. P ( 16 < X  < 20 )

f. P ( 20 < X  < 26 )

Solution:

- We will declare a random variable X that follows a normal distribution

                                   X ~ N ( 20 , 2 )

- After defining our variable X follows a normal distribution. We can compute the probabilities as follows:

a) P ( X < 24 ) ?

- Compute the Z-score value as follows:

                                   Z = (24 - 20) / 2 = 2

- Now use the Z-score tables and look for z = 2:

                                   P( X < 24 ) = P ( Z < 2) = 0.9772

b) P ( X > 18 ) ?

- Compute the Z-score values as follows:

                                   Z = (18 - 20) / 2 = -1

- Now use the Z-score tables and look for Z = -1:

                    P ( X > 18 ) = P ( Z > -1) = 0.8413

c) P ( 18 < X < 22) ?

- Compute the Z-score values as follows:

                                   Z = (18 - 20) / 2 = -1

                                   Z = (22 - 20) / 2 = 1

- Now use the Z-score tables and look for z = -1 and z = 1:

                   P ( 18 < X < 22)  = P ( -1 < Z < 1) = 0.6827

d) P ( 14 < X < 26) ?

- Compute the Z-score values as follows:

                                   Z = (14 - 20) / 2 = -3

                                   Z = (26 - 20) / 2 = 3

- Now use the Z-score tables and look for z = -3 and z = 3:

                   P ( 14 < X < 26)  = P ( -3 < Z < 3) = 0.9973

e) P ( 16 < X < 20) ?

- Compute the Z-score values as follows:

                                   Z = (16 - 20) / 2 = -2

                                   Z = (20 - 20) / 2 = 0

- Now use the Z-score tables and look for z = -2 and z = 0:

                   P ( 16 < X < 20)  = P ( -2 < Z < 0) = 0.4772

f) P ( 20 < X < 26) ?

- Compute the Z-score values as follows:

                                   Z = (26 - 20) / 2 = 3

                                   Z = (20 - 20) / 2 = 0

- Now use the Z-score tables and look for z = 0 and z = 3:

                   P ( 20 < X < 26)  = P ( 0 < Z < 3) = 0.4987

8 0
3 years ago
Jamie says that if she knows only the measure of one angle in an isosceles triangle, she can always determine the measures of th
lozanna [386]

Answer:

Jamie is correct

Step-by-step explanation:

Jamie is correct.

Example: isosceles triangle ABC AB=AC

∠B = ∠C        ∠A + ∠B + ∠C = 180°

if ∠A = x     ∠B = ∠C = 1/2 * ( 180° - x)

if ∠B or ∠C = x            ∠A = 180° - 2x

6 0
3 years ago
Read 2 more answers
Lengths of full-term babies in the US are Normally distributed with a mean length of 20.5 inches and a standard deviation of 0.9
mash [69]

Answer:

66.48% of full-term babies are between 19 and 21 inches long at birth

Step-by-step explanation:

Normal Probability Distribution:

Problems of normal distributions can be solved using the z-score formula.

In a set with mean \mu and standard deviation \sigma, the z-score of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the p-value, we get the probability that the value of the measure is greater than X.

Mean length of 20.5 inches and a standard deviation of 0.90 inches.

This means that \mu = 20.5, \sigma = 0.9

What percentage of full-term babies are between 19 and 21 inches long at birth?

The proportion is the p-value of Z when X = 21 subtracted by the p-value of Z when X = 19. Then

X = 21

Z = \frac{X - \mu}{\sigma}

Z = \frac{21 - 20.5}{0.9}

Z = 0.56

Z = 0.56 has a p-value of 0.7123

X = 19

Z = \frac{X - \mu}{\sigma}

Z = \frac{19 - 20.5}{0.9}

Z = -1.67

Z = -1.67 has a p-value of 0.0475

0.7123 - 0.0475 = 0.6648

0.6648*100% = 66.48%

66.48% of full-term babies are between 19 and 21 inches long at birth

5 0
2 years ago
Determine the vertical asymptote for the rational function f(x) = x - 4 over 2x + 3.
mr_godi [17]

Vertical asymptotes happen at x=a if the function is undefined at x=a.

This is a rational functions, and rational functions are not defined when the denominator is zero, since you can't divide by zero.

In this case, the denominator is zero if

2x+3=0 \iff 2x=-3 \iff x=-\drac{3}{2}

And thus the function has a vertical asymptote at x= -3/2

3 0
3 years ago
Other questions:
  • Listed are the heights of 15 players in inches on a basketball team. Fill in the table according to the data
    14·2 answers
  • According to the graph what is the value of the constant in the equation below
    8·1 answer
  • (-2,6)(6,6)(1,-6)(-7,-6) find the perimeter to the parallelogram
    10·2 answers
  • Jasmine wants to use her savings of $1,128 to buy video games and music cds. The total price of the music cd she bought was $72.
    15·2 answers
  • (06.02) A linear function that represents the number of animals adopted from the shelter is compared to a different linear funct
    15·1 answer
  • 2 is 4% of what number.<br>(use proportions or not idc)​
    15·2 answers
  • Diane bought new headphones originally listed for $70.99. They are 25% off. Which equation can be used to find the amount Diane
    8·1 answer
  • Did i get almost an entire lesson on math done in a day? <br> Yes<br> Was it hard?<br> N o p e
    9·2 answers
  • Plz can you answer this hurry plzzzzz
    12·1 answer
  • Please answer the question... I will mark you brainliest
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!