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]
2 years ago
13

Q5

Engineering
1 answer:
Klio2033 [76]2 years 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
Read the first paragraph of the article.
Paladinen [302]

Answer:

i think it is A, i could not really understand your question.

Explanation:

just a question

(wheres the article?)

5 0
3 years ago
Technician a s ays a shorted circuit can generate excessive heat. technician b says a shorted circuit will cause the circuit pro
Lerok [7]

Based on the information provided, the technician who is correct is: C. Both Technician A and Technician B.

<h3>What is an open circuit?</h3>

An open circuit can be defined as a type of electric circuit in which the continuity between the conducting wire (paths) has been broken or cut.

This ultimately implies that, an open circuit is designed and developed to prevent the flow of electric charges (electrons or currents) from one point in an electric circuit to another.

In Electrical engineering, a short usually causes an electric circuit protection device such as a fuse, circuit breaker, etc., to open when higher than normal current flows through the electrical circuit.

Read more on short circuit here: brainly.com/question/25018411

#SPJ1

Complete Question:

Technician A says a shorted circuit can generate excessive heat. Technician B says a shorted circuit will cause the circuit protection device to open. who is correct?

A. Technician A only

B. Technician B only

C. Both Technician A and B

D. Neither Technician A nor B

5 0
1 year ago
How do robots demonstrate the modern, technological Japan? *<br><br><br><br>​
Alborosie

Robots demonstrate modern, technological Japan because it serves as brought economical success to Japan since it help them to build products faster and efficiently.

  • According to the question, we are to discuss how the robot help japan in terms of technology and modernization.

As a result of this we can see that Japan is moving forward in technology with development of robot because it makes them to build more products.

Therefore, Robot has  brought economical success to Japan

Learn more about robot at:

brainly.com/question/10387419

3 0
3 years ago
Read 2 more answers
A long cylindrical black surface fuel rod of diameter 25 mm is shielded by a surface concentric to the rod. The shield has diame
Elden [556K]

Answer:

surface temp of fuel rod = 678.85 K

Explanation:

Given data :

D1 = 25 mm

D2 = 50 mm

T2 = 335 k

T∞ = 300 k

hconv = 0.15 w/m^2.k

ε2 = 0.05

ε1 = 1

Determine energy at Q23

Q23 = Qconv + Qrad

attached below is the detailed solution

Insert given values into equation 1 attached below to obtain the surface temperature of the fuel rod ( T1 )

4 0
3 years ago
Water flows through a pipe and enters a section where the cross sectional area is larger. Viscosity, friction, and gravitational
BaLLatris [955]

Answer:

(A) and (D)

Explanation:

1) P2 is less than P1, that is when P1 increases in pressure, the velocity V1 of the water also increases. Therefore, on the other hand, since P2 is directly proportional to V1, P2 and V2 will be less than P1 and V1 respectively.

2) For P2 greater than P1 and V2 also is greater than V1. Since P2 is directly proportional to V2, hence, when P2 increases in pressure, P1 reduces in pressure. Similarly, velocity, V2 also increases and V1 reduces.

3 0
3 years ago
Other questions:
  • A flow field is characterized by the stream function ψ= 3x2y−y3. Demonstrate thatthe flow field represents a two-dimensional inc
    7·1 answer
  • Estimate the theoretical fracture strength of a brittle material if it is known that fracture occurs by the propagation of an el
    10·2 answers
  • A scale model is 4th the size of the pump. Determine the power ratio of the pump and its scale model if the ratio of the heads i
    9·1 answer
  • A solid square rod is cantilevered at one end. The rod is 1 m long and supports a completely reversing transverse load at the ot
    5·1 answer
  • For methyl chloride at 100°C the second and third virial coefficients are: B = −242.5 cm 3 ·mol −1 C = 25,200 cm 6 ·mol −2 Calcu
    7·1 answer
  • The coefficient of performance of a reversible refrigeration cycle is always (a) greater than, (b) less than, (c) equal to the c
    12·1 answer
  • The volume of a steady-state crystallizer is 85,000 L, and the solids fraction in the unit and the exiting stream is 0.340; that
    9·1 answer
  • What are the three main sections of a nuclear power plant?
    14·1 answer
  • g A steam turbine is part of a power cycle. The flow rate of steam is 30 kg/s. If the steam entering the turbine is 5000C and ha
    12·1 answer
  • Who is the first engineer of world ? and why?​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!