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
Sedaia [141]
3 years ago
15

Students in a class are asked to stand in ascending order according to their heights for the annual class photograph. Determine

the number of students not currently standing in their correct positions.Students in a class are asked to stand in ascending order according to their heights for the annual class photograph. Determine the number of students not currently standing in their correct positions.
Mathematics
1 answer:
horrorfan [7]3 years ago
4 0

Answer:

The function in Python is as follows:

def heightChecker(heights):

   expected = []

   count = 0

   for i in range(len(heights)):

       expected.append(heights[i])      

   expected.sort()

   for i in range(len(heights)):

       if expected[i] != heights[i]:

           count+=1  

   return count

Step-by-step explanation:

Required

Function to return the number of out of position students

<em>See comment for complete question</em>

This defines the function. It receives the heights as a parameter, from the main

def heightChecker(heights):

This initializes a list, (expected list)

   expected = []

This initializes the count of out of position students

   count = 0

This iterates through the original list

   for i in range(len(heights)):

The list item is then appended to the expected list

       expected.append(heights[i])      

This sorts the expected list in ascending order

   expected.sort()

This iterates through the original and the expected lists

   for i in range(len(heights)):

If list elements at the same index are not the same, count is incremented by 1

<em>        if expected[i] != heights[i]: </em>

<em>            count+=1  </em>

This returns count

   return count

You might be interested in
)) How many solutions does this equation have?<br> 12 + 4t - 14t = -13t - 18
Orlov [11]

Answer:

t = -10

Step-by-step explanation:

Ok so,

12 - 10t = -13t -18

12 - 10t + 13t = -13t + 13t - 18

12 + 3t = -18

12 - 12 + 3t = -18 - 12

3t = -30

t = -10

hope this helps! have a good day!

7 0
3 years ago
The temperature was 61 degrees at sunrise.
Olin [163]
The answer would be 73 degrees because 62 +12 = 73
5 0
4 years ago
HELPP PLEASE ASAP I REALLY NEED HELP <br> attachment below
iren2701 [21]
When you rotate 90 degrees clockwise, (x,y) becomes (y,-x).

Therefore:
G = (3,1)
H = (0, 4)
I = (-2, -3)
6 0
4 years ago
Read 2 more answers
3x+7y=17
Dafna1 [17]

Answer:

(\frac{10}{3}, 1)

Step-by-step explanation:

1) In order to solve a system of equations with the elimination method, you need to add or subtract the two equations and "eliminate" variables by canceling out terms. This leaves you with an equation with only one variable to solve. Then, once you solve that equation, you can substitute the answer you got into one of the system's equations to find either the x or y value.

This problem already has one 3x in each equation, so let's focus on canceling that term out, eliminating the x variable. To set up this situation, we need one 3x to be negative, so let's multiply the terms in 3x-6y = 4 by -1, which gets us to -3x + 6y = -4. Now let's "cancel out" those x variables by adding them together.  (This work is shown in the first picture.)

Remember to add the other terms. This leaves us with the equation 13y = 13. By isolating y, we can find its value, which leaves us with y = 1.

2) Next, let's substitute 1 for y in one of the two equations. In this case, I used 3x + 7y = 17. Then, isolate x to find its value:

3x + 7 (1) = 17\\3x + 7 = 17 \\3x = 10 \\x = \frac{10}{3}

Therefore, the answer would be (\frac{10}{3}  , 1).

5 0
3 years ago
Fill in the blank (there was no word bank)
Elena L [17]

angle ADC = 50° + 85°

= 135°

<h3><u>PLEASE</u><u> MARK</u><u> ME</u><u> BRAINLIEST</u></h3>

3 0
3 years ago
Other questions:
  • What is 2.4 divided by 0.08
    10·2 answers
  • Suppose the heights (in inches) of adult males in the United States are normally distributed with a mean of 72 inches and a stan
    13·1 answer
  • Geometry math question no Guessing and Please show work thank you
    9·2 answers
  • Which statement describes the graph
    8·1 answer
  • Two angles are complements if their sum is 90 degrees. The measure of one angle is one third the measure of its complement. Find
    9·1 answer
  • THERE ARE 7 CONSECUTIVE NUMBERS.
    12·2 answers
  • A television originally cost
    8·1 answer
  • Someone pls help me I’m stuck
    10·1 answer
  • hey! please help with this!!! Write all the 12 answer of measurements. If you can’t do it and you think it’s a lot you don’t hav
    14·1 answer
  • What is the equation of the red graph?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!