Answer:
Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.
Explanation:
Look at the photo
Good luck
THANKS BRAINLY <3
Explain : I've got a lot of help from this website :D
Answer:
Answer explained below
Explanation:
The following is the nested if-else statement:
% if-based statement
if num < -2 || num > 4
f1(num)
else
if num <=2
if num >= 0
f2(num)
else
f3(num)
end
else
f4(num)
end
end
<u>NOTE:</u> the num is an integer variable that has been initialized and that there are functions f1, f2, f3 and f4.
The nested if-else statement can be replaced by switch statement as shown below:
switch num
case(0, 1, 2)
f2(num)
case(-2, -1)
f3(num)
case(3, 4)
f4(num)
otherwise
f1(num)
In this case, the switch based code is easier to write and understand because the cases are single valued or a few discrete values (not ranges of values)
Answer:
Explanation:
The answer to the above question is given in attached files.
Answer:
the percent increase in the velocity of air is 25.65%
Explanation:
Hello!
The first thing we must consider to solve this problem is the continuity equation that states that the amount of mass flow that enters a system is the same as what should come out.
m1=m2
Now remember that mass flow is given by the product of density, cross-sectional area and velocity
(α1)(V1)(A1)=(α2)(V2)(A2)
where
α=density
V=velocity
A=area
Now we can assume that the input and output areas are equal
(α1)(V1)=(α2)(V2)

Now we can use the equation that defines the percentage of increase, in this case for speed

Now we use the equation obtained in the previous step, and replace values

the percent increase in the velocity of air is 25.65%