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)
Explanation:
Conduction is the heat transfer through a stationary matter by the physical contact.
For example, the heat transferred between electric burner of stove and bottom of pan is transferred by the process of conduction.
Convection is heat transfer by macroscopic movement of the fluid. The particles of the fluid carry the current within themselves.
For example, the water is the pot is warmed overall by heat transferred by the process of convection.
Answer:
E = 8.83 kips
Explanation:
First, we determine the stress on the rod:

where,
σ = stress = ?
F = Force Applied = 1300 lb
A = Cross-sectional Area of rod = 0.5
Therefore,

Now, we determine the strain:

Now, the modulus of elasticity (E) is given as:

<u>E = 8.83 kips</u>
Both are true. Tech A claims that a vacuum gauge can be used to locate tiny vacuum leaks. According to tech B, the catalytic converter is usually placed behind the muffler.
<h3>Which of the following links the catalytic converter to the exhaust manifold?</h3>
Tailpipe. The catalytic converter has cleaned up the exhaust gases, which are then sent out of the car and into the atmosphere via the tailpipe, the last link in the exhaust system.
<h3>Which of the following exhaust system parts aids in lowering exhaust emissions?</h3>
Hazardous pollutants from engine exhaust are decreased by the catalytic converter. The converter, which is situated between the exhaust manifold and the muffler, works with heat and metals that serve as catalysts.
To know more about vacuum gauge visit:-
brainly.com/question/20989381
#SPJ4
The code to
- Declare a variable and increment with a while loop until the variable is not less than 5
- Create a function that returns the product of two numbers
- Uses the new keyword to create an array
were written in JavaScript and are found in the attached images
<h3>
Declaring a variable</h3>
The first code declares a variable called num and gives it an initial value of 0. It then enters a while loop that lauches a message box (using <em>window.alert</em>) to print the message "<em>Keep going</em>" as long as num remains less than 5.
If nothing is done within the loop to increment num towards the value 5, the loop will go on endlessly notifying the user to "<em>Keep going</em>".
So, an increment of 1 was added to the loop body to increment the variable num. This makes sure the loop terminates.
<h3>
Creating a function that returns the product of two numbers</h3>
Here, a function was created that receives two arguments (n1 and n2), then returns the product (n1 * n2)
<h3>
Declaring an Array</h3>
This last code segment creates an array using the new keyword. The new keyword is generally used in constructing objects.
In this case the object constructed is an array having three strings;
- my <em>nickname</em>, and
See another solved JavaScript problem here brainly.com/question/23610566