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: So you are dealing with maximum and minimum weights and you want to know what MINIMUM number of supporting strands for this block and tackle system are needed I believe. If so you are dealing with economic imbalances Though we are not worrying about money Right? Right we need physics which Physics study matter and how it moves You would need 8 STRANDS
Explanation: Step By Step
Answer:
Explanation:
There are three points in time we need to consider. At point 0, the mango begins to fall from the tree. At point 1, the mango reaches the top of the window. At point 2, the mango reaches the bottom of the window.
We are given the following information:
y₁ = 3 m
y₂ = 3 m − 2.4 m = 0.6 m
t₂ − t₁ = 0.4 s
a = -9.8 m/s²
t₀ = 0 s
v₀ = 0 m/s
We need to find y₀.
Use a constant acceleration equation:
y = y₀ + v₀ t + ½ at²
Evaluated at point 1:
3 = y₀ + (0) t₁ + ½ (-9.8) t₁²
3 = y₀ − 4.9 t₁²
Evaluated at point 2:
0.6 = y₀ + (0) t₂ + ½ (-9.8) t₂²
0.6 = y₀ − 4.9 t₂²
Solve for y₀ in the first equation and substitute into the second:
y₀ = 3 + 4.9 t₁²
0.6 = (3 + 4.9 t₁²) − 4.9 t₂²
0 = 2.4 + 4.9 (t₁² − t₂²)
We know t₂ = t₁ + 0.4:
0 = 2.4 + 4.9 (t₁² − (t₁ + 0.4)²)
0 = 2.4 + 4.9 (t₁² − (t₁² + 0.8 t₁ + 0.16))
0 = 2.4 + 4.9 (t₁² − t₁² − 0.8 t₁ − 0.16)
0 = 2.4 + 4.9 (-0.8 t₁ − 0.16)
0 = 2.4 − 3.92 t₁ − 0.784
0 = 1.616 − 3.92 t₁
t₁ = 0.412
Now we can plug this into the original equation and find y₀:
3 = y₀ − 4.9 t₁²
3 = y₀ − 4.9 (0.412)²
3 = y₀ − 0.83
y₀ = 3.83
Rounded to two significant figures, the height of the tree is 3.8 meters.
2,000 the answer __________im Shayla_________I like food _________do you________the crunch for me_______km not fat tho______are u no worrys________is u are u still pretty