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
Metal wireways are sheet metal troughs with _____________ for housing and protecting electrical conductors and cable.
levacccp [35]

Answer:

Metal wireways are sheet metal "U"s with removable housing for protecting electrical equipment, wires, and cables.

Explanation:

These are especially used to run wire in manufacturing environments.

5 0
2 years ago
How to study thermodynamics?​
expeople1 [14]

It is study of the relationships between heat, temprature, work and energy

7 0
3 years ago
Read 2 more answers
For each topic, find the total number of blurts that were analyzed as being related to the topic. Order the result by topic id.
photoshop1234 [79]

Answer:

Explanation: see attachment below

8 0
3 years ago
A(n) ____ is an object setting used to control the visible display of objects.
KatRina [158]
Remote?? maybe I’m not really sure
3 0
3 years ago
Best use for a suspension bridge
babunello [35]

Answer:

over a rive or fast moving water or canyon

Explanation: you would use a suspension bridge in an area where you can't put supports down.

4 0
3 years ago
Other questions:
  • Two wastewater treatment plant workers (one male and one female) are exposed to hydrogen sulfide in confined spaces in the treat
    7·1 answer
  • A cylindrical specimen of brass that has a diameter of 20 mm, a tensile modulus of 110 GPa, and a Poisson’s ratio of 0.35 is pul
    13·1 answer
  • Explain about Absolute viscosity, kinematic viscosity and SUS?
    11·1 answer
  • What kind of value should an employee possess when employees are expected to be responsible and fair?
    5·1 answer
  • Consider a regenerative gas-turbine power plant with two stages of compression and two stages of expansion. The overall pressure
    11·1 answer
  • Is normally a large red cable connected to the battery
    11·2 answers
  • Which one of the following activities is not an example of incident coordination
    15·1 answer
  • The driver should be able to see the ground within _____ to the front?
    14·1 answer
  • The complete stress distribution obtained by superposing the stresses produced by an axial force and a bending moment is correct
    13·1 answer
  • when discussing valve train components, technician a says stamped rocker arms are very strong and may be used in high-horsepower
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!