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
Gekata [30.6K]
1 year ago
13

Q5

Engineering
1 answer:
Klio2033 [76]1 year ago
5 0

The C++ code that would draw all the iterations in the selection sort process on the array is given below:

<h3>C++ Code</h3>

#include <stdio.h>

#include <stdlib.h>

int main() {

   int i, temp1, temp2;

   int string2[16] = { 0, 4, 2, 5, 1, 5, 6, 2, 6, 89, 21, 32, 31, 5, 32, 12 };

   _Bool check = 1;

   while (check) {

       temp1 = string2[i];

       temp2 = string2[i + 1];

       if (temp1 < temp2) {

           string2[i + 1] = temp1;

           string2[i] = temp2;

           i = 0;

       } else {

           i++;

           if (i = 15) {

               check = !check;

           }

       }

   }

   

   return 0;

}

Read more about C++ programming here:

brainly.com/question/20339175

#SPJ1

You might be interested in
A ________ can be installed in a cast-iron block to repair a worn or cracked cylinder. Question 24 options:
VLD [36.1K]

Answer:

Cylinder sleeve

Explanation:

7 0
2 years ago
1. On a 2001 Honda Civic, while replacing fuel injectors, what do you coat the new O-rings with?
scoundrel [369]

Answer:

Coat new O-rings (D) with silicone oil or polyalkyleneglycol (PAG) oil, and pull them on the injectors.

3 0
3 years ago
Which of the following has led to a safer and more prosperous global community within the last century? the Bronze Age composite
sattari [20]

Answer:

The bronze age

4 0
3 years ago
Read 2 more answers
In several sentences, please discuss:
Bezzdna [24]

Answer:

Everything is explained below in the Explanation section.

Explanation:

<em>a) TMDL stands for = Total Daily Maximum Loads</em>

TMDL is the measure of total maximum amount of pollutant allowed in the water body. TMDL is a important tool to maintain the quality of water and measure the aquatic pollution.

Whereas, the formula to calculate TMDL is as follows:

TMDL =  Sum of waste load allocations (point source) + Sum of load allocations (non point sources and background) + Margin of Safety

 

<em>b) Dead Zones :</em>

Dead zones are zones which are termed as hypoxic which are low in oxygen because of the extreme aquatic pollution caused by human activities which in result deplete the oxygen level above the and below the oceans most required by the marine life. In addition, dead zones are those areas where oxygen is low and life in danger is high comparatively to other areas of oceans.

The main cause of that dead zones is because of eutrophication which means adding dangerous chemical nutrients in the water in exceeding amounts.

<em>c) Why Ammonia-nitrogen is detrimental to waterbodies: </em>

1. Ammonia nitrogen is a very toxic pollutant often found in landfills and sewage and waste products.

2. Ammonia nitrogen reduces the ability of water to disinfect its inhabitants and it reduces the purity. Furthermore, it changes the smell of the water and pollutes it.

3. Last but not the least, if you increase the concentration of ammonia nitrogen, the dissolved oxygen rate will be decreased and it has a inverse relation which is very dangerous to marine life underwater.

<em>d) Streeter-Phelps DO curve:</em>

Please refer to the attachment, I have attached the curve.

This curve is used to evaluate the dissolved oxygen in the water with varying distance.

It can be further studied from the curve that, how much loss sewage and other pollutants can endure upon the marine life.

8 0
3 years ago
Antilaser eyewear should be worn when a laser​ level's output is greater than​ ____
creativ13 [48]

Answer: 5mW

Explanation:

8 0
3 years ago
Other questions:
  • 7 Single-use earplugs require a professional fitting before they can be used.
    10·2 answers
  • All MOS devices are subject to damage from:________
    7·1 answer
  • For an irreversible isothermal process occured in a system with temperature T, which following expression best evaluates the cha
    11·1 answer
  • Find the volume of the rectangular prism<br> 9 cm<br> 10 cm
    8·1 answer
  • So far in your lifetime, about how much garbage have you contributed
    12·1 answer
  • A digital Filter is defined by the following difference equation:
    11·1 answer
  • If Fred has already measured 14 inches of a table measuring 30 inches. How many inches does he need to measure more?
    15·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • 10. Power = (Distance * Force) / Time
    7·1 answer
  • Technician A says that if fuel pump pressure is correct, fuel pump volume will be correct as well. Technician B says that a fuel
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!