Question: The last thing to do is determine whether the turtle hit the target. If the turtle is inside the target, all of the following will
The last thing to do is determine whether the turtle hit the target. If the turtle is inside the target, all of the following will be true:
The turtle's coordinate will be greater than or equal to TARGETLLEFT
The turtle's coordinate will be less than or equal to TARGETLLEFTX TARGET WIDTH
The turtle's coordinate will be greater than or equal to TARGETLLEFTY
The turtle's coordinate will be less than or equal to TARGETLLEFTY TARGET WIDTH
The ifelse statement in lines through determines whether all of these conditions are true. If they are true, the message 'Target hit! is displayed in line Otherwise, the message 'You missed the target. is displayed in line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
