Click HEREto return to My Scratch Stuff.

Click HERE to return to homepage.

-------------------------------------------------------------

Use the keys of your keyboard to control the sprite below. The chart for what keys do what is above the spriteboard.

Part one of question 3 moves 100 steps because it moves the sprite ten steps ten times, which is equal to 100 steps.

part two of problem 3 moves the sprite 100 steps because the sprite moves one step ten times, and repeats that process ten times, which is equal to 100 steps.

part three of problem 3 moves the sprite 1620 steps because the sprite moves 5 steps 16 times with one additional step, all of which is repeated 20 times.

Part four of problem 3 moves the sprite 100 steps because the sprite moves 1 step 20 times, followed by moving 5 steps 16 times, which totals 100 steps moved.

The final part to problem 3 moves the sprite for an infitnite amount of steps because it moves 10 steps 10 times, which is repeated forever.

For problem 5, the last option works the best because it will always be checking to see if the mouse us touching it.

Question 1: repeat___, forever, if (___) then (___), if (___) then else, and repeat until (___). the first of these repeats the loop for as many times as specified, the second repeats it forever, the third only turns on the loop if something that has been set as the trigger has occured, the fourth does the same thing as the third, but it also has another variable, oposite to the third one, which is if the first variable doesnt occur, then do this, and the fifth one repeats until a something that has been set as the trigger occurs.

Question 2: It does not make sense because the first forever loop is not necissary because the second forever loop will make it so that the first one is never used again.

Question 3: The forever loop.

Question 4: Not that I know of. The only eway I know of is to broadcast messages.

Question 5: Yes, because 'else' is basically 'if not (___), then', in which case the double negatives in the second one would cancle out, and your be left with the same thing as the first one.

Part | Problem One | Problem Two | Problem Three | Problem Four | Problem Five |

1 | na | a | b | g | h |

2 | c | ||||

3 | d | ||||

4 | e | ||||

5 | f | ||||

Reset | r | r | r | r | r |

Note: For optimum results, reset after every demonstration.

Note2: r = reset sprite to (-200, 0)

-------------------------------------------------------------

Click HEREto return to My Scratch Stuff.

Click HERE to return to homepage.