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
If a team scored 96 points while making 18 free throws, how many field goals were made?
vlabodo [156]

Answer:

26 free throws

Step-by-step explanation:

96-18=78

78 divided by how much one free throw is worth (3)

you would get 26

hope this helps!

8 0
3 years ago
What is the result when 2x^3-9x^2+11x-6 is divided by x-3
elena-s [515]
-----------------------------<span />

8 0
3 years ago
There are 3 alternative routes by which you may drive to work: Alabaster Street, Brillantine Street, and Clancy Street. It is th
Solnce55 [7]

Answer:

25%

Step-by-step explanation:

sorry i did it in my head

3 0
3 years ago
Which expression represents the volume, in cubic
muminat

Given:

The composite figure.

To find:

The volume of the given composite figure.

Solution:

Given composite figure contains a cuboid and a pyramid.

Length, breadth and height of the cuboid are 8, 6 and 4 respectively.

Volume of a cuboid is

V_1=length\times breadth\times height

V_1=(8)(6)(4)

Length and breadth of the pyramid is same as the cuboid, i.e., 8 and 6 respectively.

Height of pyramid = 10 - 4 = 6

Volume of a pyramid is

V_2=\dfrac{1}{3}\times length\times breadth\times height

V_2=(\dfrac{1}{3})(8)(6)(6)

The volume of composite figure is

V=V_1+V_2

V=(8)(6)(4)+(\dfrac{1}{3})(8)(6)(6)

It can be written as

V=(\dfrac{1}{3})(8)(6)(6)+(8)(6)(4)

Therefore, the correct option is A.

3 0
3 years ago
Paul plans to buy a movie that has a regular price of $19.99. It is on sale for 25% off, but Paul will have to pay 6% sales tax.
d1i1m1o1n [39]

Answer:

16.00

Step-by-step explanation:

19.99 - 25% + 6% = 15.89 =16.00

8 0
3 years ago
Other questions:
  • Explain why you should record a 1 in the tens when you regroup in an addition problem
    14·2 answers
  • The perimeter of triangle ABC is 54. The triangle has side lengths AB=3x, BC=4x, and AC= 5x. Find the length of each side.
    6·1 answer
  • Can someone give me the answer to this?
    8·1 answer
  • I need help —30 POINTS——<br> 22.) Please!
    15·1 answer
  • Complete the square.
    9·1 answer
  • Complete the square to rewite y=x^2-6x+15
    15·1 answer
  • 1. Simplify. 42 (square, so it's 4 x 4)+ 25
    10·1 answer
  • Marivel paid $16.64 for 3 pounds of almonds. What is the price for 15 pounds of almonds?​
    14·1 answer
  • John has 6 pairs of pants and 3 shirts. How many possible outfits consisting of one shirt and
    12·1 answer
  • Solve the following inequality <br> 4x+15≥x+6
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!