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
Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
WINSTONCH [101]

Answer:

Explanation:

For automobile emission, a uniform standard is preferred, because no unnecessary advantage is given by it to any company that is located in particular states where the regional standards are less severe.

Since pollution has its impact across the states and in the whole of the USA, then there should be uniform standards across all the states. It will also invalidate the impact of regional standards as a factor in the selection of plant locations for the automobile company. It means that a state offering less valid emission standards, will attract more companies to herself and it will be against the other states who care more about the natural environment. It can make more states to opt for the permissive emission standards, that will be more harmful to the USA as a country, than the good. So, a uniform standard is preferred to eliminate it as a factor in plant location decisions.

Yes, uniform standards are beneficial to everyone, because it will bring effective control upon the pollution level because there will be no state where the culprit firm can hide. Besides, it is more effective as efforts done towards environment conservation.

3 0
3 years ago
Controlling your vehicle
Ratling [72]

Answer:

5. D

6. c

7. d

Explanation:

3 0
3 years ago
.a. What size vessel holds 2 kg water at 80°C such that 70% is vapor? What are the pressure and internal energy? b. A 1.6 m3 ves
vesna_86 [32]

Answer:

Part a: The volume of vessel is 4.7680m^3 and total internal energy is 3680 kJ.

Part b: The quality of the mixture is 90.3%  or 0.903, temperature is 120 °C and total internal energy is 4660 kJ.

Explanation:

Part a:

As per given data

m=2 kg

T=80 °C =80+273=353 K

Dryness=70% vapour =0.7

<em>From the steam tables at 80 °C</em>

Specific volume of saturated vapours=v_g=3.40527 m^3/kg

Specific volume of saturated liquid=v_f=0.00102 m^3/kg

Now the relation  of total specific volume for a specific dryness value is given as

                                  v=v_f+x(v_g-v_f)

Substituting the values give

v=v_f+x(v_g-v_f)\\v=0.00102+0.7(3.40527-0.00102)\\v_f=2.38399 m^3/kg

Now the volume of vessel is given as

v=\frac{V}{m}\\V=v \times m\\V=2.38399 \times 2\\V=4.7680 m^3

So the volume of vessel is 4.7680m^3.

Similarly for T=80 and dryness ratio of 0.7 from the table of steam

Pressure=P=47.4 kPa

Specific internal energy is given as u=1840 kJ/kg

So the total internal energy is given as

u=\frac{U}{m}\\U=u \times m\\U=1840 \times 2\\U=3680 kJ

The total internal energy is 3680 kJ.

So the volume of vessel is 4.7680m^3 and total internal energy is 3680 kJ.

Part b

Volume of vessel is given as 1.6

mass is given as 2 kg

Pressure is given as 0.2 MPa or 200 kPa

Now the specific volume is given as

v=\frac{V}{m}\\v=\frac{1.6}{2}\\v=0.8 m^3/kg

So from steam tables for Pressure=200 kPa and specific volume as 0.8 gives

Temperature=T=120 °C

Quality=x=0.903 ≈ 90.3%

Specific internal energy =u=2330 kJ/kg

The total internal energy is given as

u=\frac{U}{m}\\U=u \times m\\U=2330 \times 2\\U=4660 kJ

So the quality of the mixture is 90.3%  or 0.903, temperature is 120 °C and total internal energy is 4660 kJ.

5 0
3 years ago
Differences between acidic and basic Bessemer process​
dybincka [34]

Answer:

In the acid processes, deoxidation can take place in the furnaces, leaving a reasonable time for the inclusions to rise into the sla*g and so be removed before casting. Whereas in the basic furnaces, deoxidation is rarely carried out in the presence of the sla*g, otherwise phosphorus would return to the metal.

5 0
2 years ago
One good way to improve your gas Milage is to ___.
VashaNatasha [74]

Answer: B

Explanation:

One good way to improve your gas mileage is to accelerate smoothly and directly to a safe speed.

Hope this helps!

5 0
2 years ago
Read 2 more answers
Other questions:
  • What is the solution to the system of equations?<br><br>2x-y=7<br>y=2x+3​
    8·1 answer
  • Vapor lock occurs when the gasoline is cooled and forms a gel, preventing fuel flow and
    7·2 answers
  • For a certain gas, Cp = 840.4 J/kg-K; and Cv = 651.5 J/kg-K. How fast will sound travel in this gas if it is at an adiabatic sta
    13·2 answers
  • In casting experiments performed using a certain alloy and type of sand mold, it took 155 sec for a cube-shaped casting to solid
    9·1 answer
  • How did humans create a space suit without ever going. How did we know spaces conditions?
    5·2 answers
  • Why are there few effective HCI standards?
    6·1 answer
  • Which of the following is described as a way engineers can test and investigate how things should be under certain circumstances
    8·1 answer
  • How could increasing the budget for testing have prevented the problem experienced by the mars orbiter?
    7·1 answer
  • Help please i will give brainlist
    9·2 answers
  • If an object has the same number of positive and negative charges, its electrical charge is
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!