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
4.116 The lid of a roof scuttle weighs 75 lb. It is hinged at corners A and B and maintained in the desired position by a rod CD
babunello [35]

Answer:

(a) The magnitude of force is 116.6 lb, as exerted by the rod CD

(b) The reaction at A is (-72.7j-38.1k) lb and at B it is (37.5j) lb.

Explanation:

Step by step working is shown in the images attached herewith.

For this given system, the coordinates are the following:

A(0, 0, 0)

B(26, 0, 0)

And the value of angle alpha is 20.95°

Hope that answers the question, have a great day!

5 0
3 years ago
A cylindrical brass rod has a length of 5.00cm extending from a holder and a diameter of 4.50mm. Its Young's modulus is 98.0GPa.
Galina-37 [17]

Answer:

elongation of the brass rod is 0.01956 mm

Explanation:

given data

length = 5 cm = 50 mm

diameter = 4.50 mm

Young's modulus = 98.0 GPa

load = 610 N

to find out

what will be the elongation of the brass rod in mm

solution

we know here change in length formula that is express as

δ = \frac{PL}{AE}    ................1

here δ is change in length and P is applied load  and A id cross section area and E is Young's modulus and L is length

so all value in equation 1

δ = \frac{PL}{AE}  

δ = \frac{610*50}{\frac{\pi}{4} * 4.50^2 * 98*10^3}  

δ = 0.01956 mm

so elongation of the brass rod is 0.01956 mm

7 0
3 years ago
Many farms and ranches use electric fences to keep animals from getting into or out of specific pastures. When switched on, an e
Nikolay [14]

Answer:

Aluminum

Explanation:

The best material to use when creating an electric fence would be Aluminum. Aluminum wiring is incredibly durable and can be easily obtained. Since aluminum is a non-magnetic metal its conducting capabilities far exceed other metallic options in the market and is also why companies choose aluminum for their high tension cable wiring. Aside from being more expensive than other feasible options its durability and conducting capabilities make it easily the best option.

7 0
2 years ago
Read 2 more answers
If i eat myself will I get twice as big or disappear completely?
Butoxors [25]
Disappear completely
5 0
3 years ago
Comparación de hipotecas Los Chos
aleksklad [387]

Answer:

I don't understand the language French sorry can't answer

3 0
3 years ago
Other questions:
  • Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
    11·1 answer
  • What are cars manufactured with today that allows for quick stopping without the brakes locking up?
    5·1 answer
  • Hey, can anyone tell me if Igneous rock is good to build on? Cheers!
    6·1 answer
  • Sketch the velocity profile for laminar and turbulent flow.
    15·1 answer
  • What kind of value should an employee possess when employees are expected to be responsible and fair?
    5·1 answer
  • 10. When an adhesion bond is made by melting a filler metal and allowing it to spread into the pores of the
    7·1 answer
  • What is the command in the java script that receives data from the user
    10·1 answer
  • A motor cycle is moving up an incline of 1 in 30 at a speed of 80 km/h,and then suddenly the engine shuts down.The tractive resi
    11·1 answer
  • What is the volume of the rectangular prism shown.
    9·1 answer
  • Ignition for heavy fuel oil?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!