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
What is aviation? What is the difference between aviation and flight?
-Dominant- [34]
Aviation refers to flying using an aircraft, like an aeroplane. It also includes the activities and industries related to flight, such as air traffic control. The biggest of the many uses of aviation are in air travel and military aircraft . The main difference between aeronautics and aviation is their focus. Aeronautics involves the study of the science, design, and manufacture of flying vehicles while aviation involves flying or operating an aircraft and various activities surrounding mechanical flight and the aircraft industry
3 0
3 years ago
Windmills slow the air and cause it to fill a larger channel as it passes through the blades. Consider a circular windmill with
Scilla [17]

Answer:

DIAMETER  = 9.797 m

POWER = \dot W = 28.6 kW

Explanation:

Given data:

circular windmill diamter D1 = 8m

v1 = 12 m/s

wind speed = 8 m/s

we know that specific volume is given as

v =\frac{RT}{P}

  where v is specific volume of air

considering air pressure is 100 kPa and temperature 20 degree celcius

v =  \frac{0.287\times 293}{100}

v = 0.8409 m^3/ kg

from continuity equation

A_1 V_1 = A_2 V_2

\frac{\pi}{4}D_1^2 V_1 = \frac{\pi}{4}D_1^2 V_2

D_2 = D_1 \sqrt{\frac{V_1}{V_2}}

D_2 = 8 \times \sqrt{\frac{12}{8}}

D_2 = 9.797 m

mass flow rate is given as

\dot m = \frac{A_1 V_1}{v} = \frac{\pi 8^2\times 12}{4\times 0.8049}

\dot m = 717.309 kg/s

the power produced \dot W = \dot m \frac{ V_1^2 - V_2^2}{2} = 717.3009 [\frac{12^2 - 8^2}{2} \times \frac{1 kJ/kg}{1000 m^2/s^2}]

\dot W = 28.6 kW

8 0
3 years ago
I’m doing a project on renewable energy. There are 6 energy sources. Solar, wind, geothermal, hydroelectric, tidal, and biomass.
nalin [4]

Answer:

"Biofuels"

Explanation:

I don't know if this counts but I guess it's not one of those.

6 0
2 years ago
Read 2 more answers
Which group might be classified as a gang?
Furkat [3]

Answer:

The following criteria are commonly used for classifying groups as gangs: The group has three or more members, generally aged 12–24. Members share an identity, typically linked to a name, and often other symbols. Members view themselves as a gang, and they are recognized by others as a gang.

Explanation:

8 0
3 years ago
Read 2 more answers
Consider 2 hosts, Host A and Host B, transmitting a large file to a Server C over a bottleneck link with a rate of R kbps.
nevsk [136]

Answer:

i want coins sorry use a calculator or sum

Explanation:

kk

5 0
3 years ago
Other questions:
  • 1. Which type of fit implies that a piece will never fit? a. interference fit b. construction fit c. transition fit d. impeding
    8·1 answer
  • A seawall with an opening is used to dampen the tidal influence in a coastal area (and limit erosion). The seawall is 2.5 m long
    11·1 answer
  • A 40 mph wind is blowing past your house and speeds up as it flows up and over the roof. If the elevation effects are negligible
    14·1 answer
  • What is the angle of the input
    12·1 answer
  • What forced induction device is more efficient?
    8·2 answers
  • Please what is dif<br>ference between building technology and building engineering.​
    14·2 answers
  • Mang Tisoy bought two bags of onion from the market. One bag weighed 8 kg
    14·1 answer
  • An American architect whose principles of building included consonance with the landscape was ____________________________.
    13·1 answer
  • An electrical layout is a drawing that indicates how the ________ of a circuit will be connected to one another and where the wi
    9·1 answer
  • 1. What did observations between 1912 and 1917 show?_____
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!