Teacher Worksheet One – Writing Procedures
How you write procedures will depend on the software you have for this unit. The following commands (in blue) will draw the shapes (square, triangle, pentagon). You will need to check your manual or help files to find out how to save these as procedures. This will also tell you about the required syntax (spaces or no spaces, commas, command shortcuts etc):
Square: Equilateral Triangle: Regular Pentagon:
Repeat 4 [forward 50, right 90] Repeat 3 [forward 50, right 120] Repeat 5 [forward 50, right 72]
(NB for any regular shape make sure that the number of repeats multiplied by the angle turned, equals 360. The number after the forward command relates to the length of each side).
Steps:
Repeat 4 [forward 50, right 90, forward 50, left 90]
(NB the number after the repeat command will determine how many steps are drawn – children can experiment with changing this number).
[NB – Make sure you teach procedures before completing worksheet 4. See Next Page…]
Procedures: Use the following instructions to create a procedure when using ‘Softease Turtle’: 1. 2. 3. 4. 5. 6. Click on ‘Turtle’ from the top menus. Type in a name (e.g. square) Click ‘Edit’ Type in the instructions (e.g. Repeat 4 [forward 50, right 90]). Click the cross (top right of the window). Click the cross again (top right of the window).
Now when you type in square in the command line, a square will be drawn. [To show the command line click on ‘Turtle’ and then choose ‘Command Line’ from the drop-down menu]