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:The simplify command is used to apply simplification rules to an expression. The simplify routine searches the expression for function calls, square roots, radicals, and powers and invokes the appropriate simplification procedures. For detailed information on the simplify command, see simplify/details.
Explanation:
Answer:
The axis of motion that is parallel to the spindle axis is always the Z-axis.
Explanation:
Z-Axis Which axis is which depends on the orientation of the spindle.
If the spindle is vertical (Figure 2.1), the Z-axis is vertical. Either the quill or the knee of a vertical spindle mill will move when a Z-axis command is executed.
This is the best answer I could give you, maybe you could show us a pic of the question so we see all the possible choices?