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
evablogger [386]
3 years ago
6

Appended below is the code for Selection Sort. You really do not have to understand the details of the code. If this algorithm t

akes 4 seconds to sort an array of 8 elements. How much time in seconds will the same code take to sort an array of 24 elements?
Mathematics
1 answer:
kramer3 years ago
8 0

Answer:

12 seconds.

Step-by-step explanation:

Let t represent time taken by code to sort an array of 24 elements.

We have been given that an algorithm takes 4 seconds to sort an array of 8 elements. We are asked to find the time it will take for same code to sort an array of 24 elements.

We will use proportions to solve our given problem.    

\frac{\text{Time}}{\text{Array of elements}}=\frac{4}{8}

\frac{t}{24}=\frac{4}{8}

\frac{t}{24}\cdot 24=\frac{4}{8}\cdot 24

t=\frac{4}{1}\cdot 3

t=12

Therefore, it will take 12 seconds for the same code to sort an array of 24 elements.

You might be interested in
Jack and Jill collect coins. Jack has 56 coins, and Jill has 80 coins. Both recently joined a coin-collecting club. Jack's club
Free_Kalibri [48]

Answer:

So, after 6 months, they both have the same number of coins.  

Step-by-step explanation:

Jack has 56 coins

Jill has 80 coins

Jack collect 12 coins per month

Jill collect 8 coins per month

Let after m months, they both have the same coin.

56 + 12 m = 80 + 8 m

12 m - 8 m = 80  - 56

4 m = 24

m = 6

So, after 6 months, they both have the same number of coins.  

7 0
3 years ago
If 9 exercise books cost<br>$540.00. how much will<br>14 of such cost?​
Marina CMI [18]

Answer:

$840 dollars

Step-by-step explanation:

Divide 540 by 9 to get the cost of 1 book then multiply it by 14

8 0
3 years ago
Read 2 more answers
I need to know how to find the perimeter please.
shutvik [7]
First, take all the sides you already have, then add them up. (You should get 12) To find the other two sides, do some more simple addition. The 2+3+2 of the the top side add up to six (the bottom side) and sides equal each other so add another three. Total is 12+6+3=21
5 0
3 years ago
Read 2 more answers
PLEASE HELP !
adell [148]
First what you wanna do is get y by it’s self. To do that is to first add 5 on each side.

-5+3y=-4
+5 +5

3y= 1

Than you divide 3 on each side and it would give you y=1/3 if it’s a fractions problem but if you looking for decimals you would have to divide 1 by 3 which gets you .33333333.
7 0
3 years ago
Whats the highest number you have ever counted to?
Vlada [557]

Answer:

i think it was 1,260 something

Step-by-step explanation:

i was counting the seconds it would take for my sister to put her bike back in the garage, lol :)

4 0
4 years ago
Read 2 more answers
Other questions:
  • The car at each vertex of a Ferris wheel holds a maximum of 5 people. The sum of the measures of the angles of the Ferris wheel
    11·1 answer
  • Someone vibe with me&lt;3 (look at comments)
    10·1 answer
  • What's 1billon by the 10th porwer
    12·1 answer
  • How many ounces (oz) are 1 pound (lb)
    7·1 answer
  • This is a table of values that follows a given rule or function. Each output comes from the input being applied to the rule.
    12·1 answer
  • 3. Find the missing measures. 107° z° x° y°
    6·2 answers
  • PLEASE HELP WHOEVER ANSWERS FIRST WILL GET BRAINLIEST!!
    14·1 answer
  • a line has a slope of 8 and passes through the points (3, 26) and (-1,-6) what is the equation of the line?
    15·1 answer
  • An object is moving at a speed of 7100 kilometers per minute. Express this speed in miles per second
    8·1 answer
  • Hello! I'm looking for help on the question: 6 2/3 x 3/10 in simplest form. Thank you! ^^
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!