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
You have a motor such that if you give it 12 Volt, it will eventually reach a steady state speed of 200 rad/s. If it starts from
Aleksandr [31]

Answer:

a) \frac{Ws}{Es}  = \frac{200}{1+1.2s}

b) attached below

c) type zero system

d) k > \frac{g}{200}

e) The gain K increases above % error as the  steady state speed increases

Explanation:

Given data:

Motor voltage  = 12 v

steady state speed = 200 rad/s

time taken to reach 63.2% = 1.2 seconds

<u>a) The transfer function of the motor from voltage to speed</u>

let ; \frac{K1}{1+St} be the transfer function of a motor

when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec

hence the transfer function of the motor from voltage to speed

= \frac{Ws}{Es}  = \frac{200}{1+1.2s}

<u>b) draw the block diagram of the system with plant controller and the feedback path </u>

attached below is the remaining part of the detailed solution

c) The system is a type-zero system because the pole at the origin is zero

d) ) k > \frac{g}{200}

7 0
3 years ago
Nancy wants to buy a cooking stove that’s electrically insulated and resistant to heat. What material should she choose for the
astra-53 [7]

Answer:

Ceramics

Explanation:

Ceramics are used to make cooktops if you look it up and according to my engineering and design class ceramics have high heat resistance and melting points, and make good electrical insulators.

3 0
3 years ago
Please help me do this with my exam tomorrow.
blagie [28]

Answer:

ddddddddddddddddddddddddddddd

Explanation:

cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

6 0
2 years ago
Spring-loaded rack guide yokes are made of ______ and have a spring that pushes on the back side of the rack to help reduce the
Kobotan [32]

Answer:

metal

Explanation:

A yoke assembly are use in an assembly of a rack and pinion steering gear for a vehicle. The spring loaded yokes guided with a rack are made up of metals. It consists of a spring made of steel which pushes the back side of the rack to reduce the play that occurs between the pinion and the rack and still allow the relative motion.

6 0
3 years ago
1. In an assembly two flanges are held together by a 1/2"" bolt that is threaded into one of the flanges. (a) If the clearance h
creativ13 [48]

Answer:

The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.

Explanation:

5 0
3 years ago
Other questions:
  • Consider flow in between two parallel plates located a distance H from each other. Fluid flow is driven by the bottom plate movi
    15·1 answer
  • Miller Indices:
    15·1 answer
  • Consider a 1000-W iron whose base plate is made of 0.5-cm-thick aluminum alloy 2024-T6 (rho = 2770 kg/m3 and cp = 875 J/kg·°C).
    12·1 answer
  • For a fluid with a Prandtl Number of 1000.0, the hydrodynamic layer is thinner than the thermal boundary layers. a) True b) Fals
    5·1 answer
  • The guy wires AB and AC are attached to the top of the transmission tower. The tension in cable AB is 8.7 kN. Determine the requ
    8·1 answer
  • Lagest organs of the human body
    6·2 answers
  • Is a compass a analog or a digital sensor?
    14·1 answer
  • Technician A states that air tools generally produce more noise than electric tools, so wear ear protection when using air tools
    8·1 answer
  • A jointed arm robot can rotate on the following 6 axes?
    8·1 answer
  • In a wheatstone bridge three out of four resistors have of 1K ohm each ,and the fourth resistor equals 1010 ohm. If the battery
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!