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
Solve the equation. -9(x - 2) - 29 = -11
Marrrta [24]
The answer is x=4 I have included a photo with the steps I hope it helps

7 0
3 years ago
A rectangular driveway has an area of 880 square feet and a perimeter of 128 feet. What are the dimensions of the driveway?
mamaluj [8]

Answer:

Dimensions are 20 X 44 feet

Step-by-step explanation:

First we need to build two equations:

For area X times Y = 880

For Perimeter 2x + 2y = 128

Now we need to solve one so we can substitute it into the other:

2x + 2y = 128 becomes

2x = 128 - 2y and then

x = 64 - y We will substitute this into the are equation

(64 - y)y = 880

64y - y^{2} = 880

-y^{2} + 64y -880 = 0

factor out the negative

-(y^{2} - 64y +880 = 0

Factor:

-(y - 20)(y - 44) = 0

y-20 = 0 and y - 44 = 0

y = 20 and y = 44

Plugging these in two both of our formulas works

20 X 44 = 880 for area

2(20) + 2 (44) = 128 for perimeter

8 0
3 years ago
Winnie wrote the following riddle.I am a number between 60 and 100.My ones digit is two less than my tens digit.I am a prime num
Kazeer [188]

Answer:

79

Step-by-step explanation:

60<xy<100

y -2 =x


if it is prime

y cannot be even

so y could be      1,3,5,7,9

x would then be 9,1,3,5,7

but to be between 60 and 100

x must be 7 or 9

so the number must be 79 or 57

57 is not prime so

the number is 79

5 0
3 years ago
If 19.3% of children and adolescents are obese (14.4M), what is the total number of children and adolescents overall? Please i n
Anna35 [415]

Answer:

74,611,399

Step-by-step explanation:

Percentage of obese children and adolescent = 19.3%

19.3% = 14.4 million

The overall number of children and adolescent equals a total percentage of 100%

Hence,

If 19.3 % = 14.4 million

100% = x

Cross multiply :

19.3% x = 100% * 14.4 million

0.193x = 14400000

x = 14400000 / 0.193

x = 74611398.964

Total number of children and adolescent = 74,611,399

4 0
3 years ago
Answerrrrrrrrrr pleaseeeeeee
marissa [1.9K]

Answer:

1080 cm³

Step-by-step explanation:

The total volume of the boxes is 30 times the volume of 1 box.

The volume of 1 box = 36 cm³, hence

volume of 30 - 30 × 36 = 1080 cm³

4 0
3 years ago
Other questions:
  • What is the correct answer to this mathematic question X/7=10
    10·2 answers
  • Find the volume in the cylinder in terms of π (pi) and to the nearest tenth .
    13·2 answers
  • Make a function table for each situation. The find the domain and range.
    11·1 answer
  • What is the measure of an interior angle of a regular octagon
    10·2 answers
  • What is the missing length of this rectangle?
    5·1 answer
  • Break apart and distribute to solve 72 divided by 8
    5·2 answers
  • Solve the equation for x. If necessary round to the nearest tenth.<br> x² = 17<br> X=<br> +
    11·1 answer
  • The school is 3.65 miles from Tonya house and 1.28 miles from Jamals house. How can you use a quick picture to solve this proble
    11·1 answer
  • (5z+5)+(7z+4) what is this confused ?
    6·1 answer
  • How many different trains can you make of length three?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!