QUESTION IMAGE
Question
you wrote a pseudocode version of your block program.
if position < 100: # line 1
position = position + 10 # line 2
direction = direction + 90 # line 3
which type of block do you need for line 1?
Brief Explanations
Line 1 is an if statement which is a conditional statement. In block programming, conditional statements are represented by conditional blocks. These blocks check a condition (in this case, position < 100) and execute the code inside the block (Lines 2 and 3) if the condition is true.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Conditional block.