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
1. So you can complete the things you NEED to do faster. (I.e work, groceries)
2. So it’s easier for you to do leisure activities. (I.e visiting friends, shopping)
Answer:
Test code:
>>u=10;
>>g=9.8;
>>q=100;
>>m0=100;
>>vstar=10;
>>tstar=fzero_rocket_example(u, g, q, m0, vstar)
Explanation:
See attached image
Answer:
The correct option is;
To be able to switch between different heads quickly and easily
Explanation:
A screwdriver is a tool or device that has a grip handle which surrounds an extension shaft that has a forged tip that fits into the complementary groove on a screw head such that by turning the handle while the forged head of the screwdriver sits in a screw head, the screw is turned
A convertible screw driver is built with the capability to easily change the tip or other attributes of the screwdriver quickly.