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
melamori03 [73]
3 years ago
13

Consider the following list. list = {24, 20, 10, 75, 70, 18, 60, 35} Suppose that list is sorted using the insertion sort algori

thm as discussed in the book. What is the resulting list after two passes of the sorting phase; that is, after three iterations of the for loop?a. list = {10, 18, 20, 24, 75, 70, 60, 35}b. list = {10, 20, 24, 75, 70, 18, 60, 35}c. list = {10, 18, 20, 24, 35, 70, 60, 75}d. list = {10, 20, 20, 18, 35, 70, 60, 75}
Engineering
1 answer:
Greeley [361]3 years ago
8 0

Answer:

Option B

10,20,24,75,70,18,60,35

Explanation:

The first, second and third iteration of the loop will be as follows

insertion sort iteration 1: 20,24,10,75,70,18,60,35

insertion sort iteration 2:10,20,24,75,70,18,60,35

insertion sort iteration 3: 10,20,24,75,70,18,60,35

You might be interested in
List and describe three classifications of burns to the body.
DiKsa [7]

AnswerWhat Are the Classifications of Burns? Burns are classified as first-, second-, or third-degree, depending on how deep and severe they penetrate the skin's surface. First-degree burns affect only the epidermis, or outer layer of skin. The burn site is red, painful, dry, and with no blisters.

Explanation:

8 0
3 years ago
Read 2 more answers
A sum of $500,000 will be invested by a firm two years from now. If money is worth 12%, what will be the worth of this investmen
notka56 [123]

Answer:

investment 10 years from now is $1,238,000 .

Explanation:

given data

sum = $500,000

rate = 12% =0.12

total time = 10 year

solution

as present value After 2 years from now is $500,000

so time period is now = 8 year  ( 10 - 2 )

so we apply future value formula that is

Future value  = present value × (1+r)^{t}   ............1

put here value we get

Future value  = $500,000 × (1+0.12)^{8}  

Future value  = $500,000 × 2.476

Future value  = $1,238,000  

so investment 10 years from now is $1,238,000 .

8 0
3 years ago
engineering uses data from pareto charts to analyse motor faults caused during their production. Explain one advantage of using
lions [1.4K]
The advantage of a pareto chart is to make sure they have all of their tools
3 0
3 years ago
what do we call a landslide in which fine-grained soil moves cohesively but with extensive internal shearing?
pogonyaev
It is called an earth flow
5 0
2 years ago
Technician A says that a defective crankshaft position sensor can cause a no spark condition technician B says that a faulty ign
Aliun [14]
Both tech distributor ignition
5 0
3 years ago
Other questions:
  • Select the correct answer.
    7·1 answer
  • A 12-mm-diameter cylindrical jet of water discharges vertically into the ambient air. Due to surface tension the pressure inside
    14·1 answer
  • Block A is released from rest and slides down the frictionless ramp to the loop. The maximum height h of the loop is the same as
    6·1 answer
  • To 3 significant digits, what is the temperature of water in degrees C, if its pressure is 350 kPa and the quality is 0.01
    7·1 answer
  • 0 - 1"<br> -20<br> -15<br> -10<br> 5<br> 0 1 2 3<br> 0
    14·1 answer
  • Which one of these is not a successful budgeting strategy
    5·2 answers
  • Explain the use of a vacuum gauge.
    15·1 answer
  • What is the definition of insert view and why do we use it
    10·1 answer
  • a metal rod 24mm diameter and 2m long is subjected to an axial pull of 40 kN. If the rod is 0.5mm, then find the stress-induced
    15·1 answer
  • Motors are used to convert electrical energy into mechanical work and the output mechanical work of a motor is rated in horsepow
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!