Drawing shapes with loops
Answers are for parents and teachers.
1
Write the short algorithm for a pen to draw an equilateral triangle with sides of 5 cm. Use “repeat” and the right turn angle.
Repeat 3 times: move 5 cm, turn right 120 degrees.
2
Find a regular shape in your home, such as a floor tile or a coaster. Count the sides. Work out the turn angle by dividing 360 by the number of sides.
For example, a shape with 8 sides has a turn angle of 360 ÷ 8 = 45 degrees.
3
Which shape does this script draw and which direction does the sprite face at the end?
A triangle. It faces direction 90 (right), because 3 × 120 = 360.
4
Choose a shape with 3, 4, 5, 6 or 8 sides. Write the repeat block with its numbers. Check it by drawing the shape on paper with a ruler, turning by eye (use the corner of a card for a quarter turn).
The repeat number is the number of sides, and the turn angle is 360 divided by it.