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 fluid of specific gravity 0.96 flows steadily in a long, vertical 0.71-in.-diameter pipe with an average velocity of 0.90 ft/s
KengaRu [80]

Answer:

0.00650 Ib s /ft^2

Explanation:

diameter ( D ) = 0.71 inches = 0.0591 ft

velocity = 0.90 ft/s ( V )

fluid specific gravity = 0.96 (62.4 )  ( x )

change in pressure ( P ) = 0 because pressure was constant

viscosity =  (change in p - X sin∅ ) D^{2} / 32 V

              = ( 0 - 0.96( 62.4) sin -90 ) * 0.0591 ^2  / 32 * 0.90

              = - 59.904 sin (-90) * 0.0035 / 28.8

              = 0.1874 / 28.8

  viscosity = 0.00650 Ib s /ft^2

8 0
3 years ago
Read 2 more answers
What is the purpose of having a ventilation system on board a motorized vessel?.
chubhunter [2.5K]

The purpose of having a ventilation system on board a motorized vessel is : To remove flammable gas from a vessel to avoid explosions.

<h3>Meaning of ventilation system</h3>

A ventilation system can be defined as a system that allows for removal of gases from a vessel to the atmosphere.

A Ventilation system is very important in every motorized vessel because they help to eliminate or remove flammable gases that are dangerous and are liable to explode when held in a large amount in the engine.

In conclusion, The purpose of having a ventilation system on board a motorized vessel is to remove flammable gas from a vessel their by avoiding explosions.

Learn more about Ventilation System: brainly.com/question/1687520

#SPJ4

4 0
2 years ago
Wireless technology has made communicating
emmainna [20.7K]

Answer:

Taking as a basis of calculation 100 mol of gas leaving the conversion reactor, draw andcompletely label a flowchart of this process. Then calculate the moles of fresh methanol feed,formaldehyde product solution, recycled methanol, and absorber off-gas, the kg of steamgenerated in the waste-heat boiler, and the kg of cooling water fed to the heat exchangerbetween the waste-heat boiler and the absorber. Finally, calculate the heat (kJ) that must beremoved in the distillation column overhead condenser, assuming that methanol enters as asaturated vapor at 1 atm and leaves as a saturated liquid at the same pressure.

1

SEE ANSWER

Explanation:

6 0
3 years ago
A container filled with a sample of an ideal gas at the pressure of 150 Kpa. The gas is compressed isothermally to one-third of
lyudmila [28]

Answer: c) 450 kPa

Explanation:

Boyle's Law: This law states that pressure is inversely proportional to the volume of the gas at constant temperature and number of moles.

P\propto \frac{1}{V}     (At constant temperature and number of moles)

P_1V_1=P_2V_2  

where,

P_1 = initial pressure of gas  = 150 kPa

P_2 = final pressure of gas  = ?

V_1 = initial volume of gas   = v L

V_2 = final volume of gas  = \frac{v}{3}L

150\times v=P_2\times \frac{v}{3}  

P_2=450kPa

Therefore, the new pressure of the gas will be 450 kPa.

7 0
3 years ago
Find the current Lx in the figure
AleksandrR [38]

Explanation:

\frac{1}{8}  +  \frac{1}{2}   \\ 1.6 + 1.4 = 3 \\  \frac{1}{3}  +  \frac{1}{9}   \\ 2.25 + 2 = 4.25 \: ohm

R total = 4.25 ohm

I total = Vt/Rt

I total= 17/4.25= 4 A

Ix= 600 mA

\frac{9}{9 + 3}  \times 4 = 3\\   \frac{2}{2 + 8} \times 3 = 0.6a \\  = 0.6 \: milli \: amper

6 0
3 years ago
Other questions:
  • The displacement volume of an internal combustion engine is 2.2 liters. The processes within each cylinder of the engine are mod
    13·1 answer
  • What is centrifugal force with respect to unbalance? What is the formula used to determine centrifugal force?
    12·1 answer
  • HELP!
    8·1 answer
  • . A roadway is being designed capable of allowing 70 mph vehicle speed. The superelevation around one curve is 0.05 inches per i
    15·1 answer
  • When fermentation units are operated with high aeration rates, significant amounts of water can be evaporated into the air passi
    13·1 answer
  • *6–24. The beam is used to support a dead load of 400 lb&gt;ft, a live load of 2 k&gt;ft, and a concentrated live load of 8 k. D
    13·1 answer
  • Electrical pressure or “force”<br><br> A) current<br> B) resistance <br> C) voltage
    6·1 answer
  • A local surf report provides the height of the wave from the trough to the crest of the wave. How does this relate to the wave’s
    11·1 answer
  • Multiple Choice
    7·1 answer
  • CNG is a readily available alternative to _________.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!