Steps 2 to 4
Steps 2 to 4 worksheet
Name: Date:
Step 2: Say it once. Three turns are done for you. Work out the rest, then test each one in TurtleLab.
| Shape | Sides (the repeat) | Turn |
|---|---|---|
| Triangle | 3 | 120 |
| Square | 4 | 90 |
| Pentagon | 5 | 72 |
| Hexagon | 6 | |
| Octagon | 8 | |
| A shape with 12 sides | 12 |
The rule: turn = ÷ the number of sides
Step 3: Let chance draw.
- The smallest number
random 0 255can give is . The largest is . - 50 rays, each turning 7.2, turn the turtle in all.
- With 100 rays, each ray turns to go all the way around.
Step 4: Choose a path. The turtle starts facing up (heading 0). A coin of 1 turns it right 90. A coin of 2 turns it left 90. The first row is done for you.
| Flip | Coin | The turtle turns | Heading after |
|---|---|---|---|
| 1 | 1 | right 90 | 90 |
| 2 | 1 | ||
| 3 | 2 | ||
| 4 | 1 | ||
| 5 | 2 | ||
| 6 | 2 |
In my own program, the if and else decides