Full Question
1. Correct the following code and
2. Convert the do while loop the following code to a while loop
declare integer product
declare integer number
product = 0
do while product < 100
display ""Type your number""
input number
product = number * 10
loop
display product
End While
Answer:
1. Code Correction
The errors in the code segment are:
a. The use of do while on line 4
You either use do or while product < 100
b. The use of double "" as open and end quotes for the string literal on line 5
c. The use of "loop" statement on line 7
The correction of the code segment is as follows:
declare integer product
declare integer number
product = 0
while product < 100
display "Type your number"
input number
product = number * 10
display product
End While
2. The same code segment using a do-while statement
declare integer product
declare integer number
product = 0
Do
display "Type your number"
input number
product = number * 10
display product
while product < 100
Answer:
81.76 N/mm² ( MPa), 1.71233
Explanation:
Modulus of elasticity = stress / strain
stress = modulus of elastic × strain
strain = ΔL / L = 250.28 mm - 250 mm / 250 mm = 0.00112
Modulus of elasticity E = 73 GPa = 73 × 10³ MPa where 1 MPa = 1 N/mm²
E = 73 × 10³N/mm²
stress = 73 × 10³N/mm²× 0.00112 = 81.76 N/mm² ( MPa)
b) Factor of safety = maximum allowable stress / induced stress = 140 MPa / 81.76 MPa = 1.71233
Answer:
The instantaneous axis of rotation=
x = 0 ; z = 8.4 ft
Explanation:
Given:
Speed of helicopter, Vo= 120 mi/h, converting to ft/sec, we have:

= 176 ft/s
Angular velociyy, w = 220 rpm, converting to rad/sec, we have: 
The helicopter moves horizontally in the x direction at a speed of 120 mi/h, this means that the helicopter moves in the positive x direction at 120mi/h
To find the instantaneous axis of rotation of the main blades, we have:
Where Vc = 20.95 rad/s
Vo = 176 ft/s

= 8.4 ft
Therefore the axis of rotation=
x = 0 ; z = 8.4 ft
Answer:
B
Explanation:
Aluminium doesn't rust unless exposed to copper for a duration of time.
Answer: False
Explanation: Reynolds number is the number for determining he flow pattern of the behavior of fluids.It judges the flow of the fluid ans states whether it is of turbulent or laminar natured. This number has the property of kinematics as well as statics. It can also be defined as the ratio between the inertial force to viscous force.It's length changes along with change length of the horizontal plate .Thus, the statement given is false.