Drawing+Shapes

Specification
Write a program to draw a square

Note that to draw a square you need to repeat the following steps 4 times:
 * draw a line
 * rotate 90°

Design
Input: None Processes: Draw a square Output: A square

None
 * Variables **

Copy and complete the following algorithm
 * Algorithm **

1. Initialise drawing tools 1.1 Clear the screen 1.2 Put the pen down 1.3 Set the pen colour

2. Draw square 2.1 Repeat - - - times 2.2 Draw a line 2.3 Turn - - - degrees 2.4 End repeat

Program
Write the code for this program

Extension
1. Adapt the program to draw a triangle

2. Can you draw any other shapes?
 * pentagon
 * octagon
 * hexagon
 * equilateral triangle
 * other shapes / patterns
 * circle