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
As described in "A Note About Bacterial Reproduction -- and the "Culture Bias,"" the organism Epulopisciumdoes not divide by bin
zloy xaker [14]

Answer:

A

Explanation:

The best method that will yield significantly more accurate result is to use spectrophotometer to read the turbidity of the sample and increase in turbidity is associated with increase biomass.

5 0
2 years ago
Define waves as it applies to electromagnetic fields
julsineya [31]

Waves in the electric and magnetic fields are known as electromagnetic waves. You must first understand what a field is, which is just a technique of giving each square inch of space a numerical value. You may see that as a temperature field, for instance, when you look at the weather predictions and they mention the temperature in several locations. Every location on Earth has a unique temperature that can be quantified. Everywhere on Earth has its own wind velocity, which is another form of field. This field differs somewhat from the temperature field in that the wind velocity has both a direction and a magnitude, whereas the temperature just has a magnitude (how hot it is). A vector is a quantity that has both magnitude and direction, hence a field that contains vectors at every location is referred to as a vector field. Vector fields include the magnetic and electric fields. We may examine what would happen if we placed a charged particle at any given position in space. If the charged particle were to accelerate, we would state that the electric field there is the direction in which the particle is moving. In general, positively charged particles will move in the electric field's direction, whereas negatively charged particles will move in the opposite way. Because it is a vector field, the magnetic field exhibits comparable behavior. We discovered in the 19th century that the same interaction, electromagnetism, really produces both electric and magnetic fields. Like an electromagnet, a changing electric field will produce a magnetic field, and a changing magnetic field will induce an electric field (like in a generator). If your system is configured properly, you may have an electric field that fluctuates, which in turn produces a magnetic field, which in turn induces another electric field, which in turn generates another magnetic field, and so on indefinitely. At the speed of light, this oscillation between a strong magnetic field and strong electric field spreads out indefinitely. In reality, light is an electromagnetic wave—an oscillation in the electromagnetic fields. An electric or magnetic field may exist without a medium since they exist in a vacuum, which implies that waves in these fields don't require a medium like sound to flow through.

5 0
1 year ago
Air enters a turbine with a stagnation pressure of 900 kPa and a stagnation temperature of 658K, and it is expanded to a stagnat
bezimeni [28]

Answer:

12.332 KW

The positive sign indicates work done by the system ( Turbine )

Explanation:

Stagnation pressure( P1 ) = 900 kPa

Stagnation temperature ( T1 ) = 658K

Expanded stagnation pressure ( P2 ) = 100 kPa

Expansion process is  Isentropic, also assume steady state condition

mass flow rate ( m ) = 0.04 kg/s

<u>Calculate the Turbine power </u>

Assuming a steady state condition

( p1 / p2 )^(r-1/r)  = ( T1 / T2 )

= (900 / 100)^(1.4-1/1.4) = ( 658 / T2 )

=  ( 9 )^0.285 = 658 / T2

∴ T2 = 351.22 K

Finally Turbine Power / power developed can be calculated as

Wt = mCp ( T1 - T2 )

    = 0.04 * 1.005 ( 658 - 351.22 )

    = 12.332 KW

The positive sign indicates work done by the system ( Turbine )

6 0
2 years ago
What are the dimensions of the base of the pyramid?
Cloud [144]

Answer:

b

Explanation:

bcus it is

7 0
2 years ago
The properties of the air in the inlet section with A1 = 0.25ab m2 in a converging-diverging channel are given as U1 = 25a,b m/s
NeX [460]

Answer:

nice cake

Explanation:

3 0
3 years ago
Other questions:
  • 7 Single-use earplugs require a professional fitting before they can be used.
    10·2 answers
  • A tank has two rooms separated by a membrane. Room A has 1 kg of air and a volume of 0.5 m3; room B has 0.75 m3 of air with dens
    15·1 answer
  • An engineer measures a sample of 1200 shafts out of a certain shipment. He finds the shafts have an average diameter of 2.45 inc
    15·1 answer
  • Introduction for site visit​
    13·1 answer
  • First real answer i’ll give Brainlyist
    12·1 answer
  • Which of the following addresses future implications of design and process decisions?
    5·1 answer
  • Yeah this question might be difficult as most of the brainly community is math. Hope I can find at last one robotics person. ;-;
    13·2 answers
  • ASAP correct answer plss When you are driving, if you see this traffic sign it means
    8·1 answer
  • Rod of steel, 200 mm length reduces its diameter (50 mm) by turning by 2 mm with feed speed 25 mm/min. You are required to calcu
    11·1 answer
  • True or false for the 4 questions?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!