0% found this document useful (1 vote)
2K views4 pages

Lesson Plan For Nested REPEAT

This lesson plan teaches students about using nested REPEAT commands in Logo programming. Students will learn the syntax of REPEAT, which repeats a set of commands a specified number of times. They will practice using REPEAT to draw basic shapes like squares and rectangles. More complex examples show how adjusting the repetition count and turning angle can produce different polygons and star shapes. Finally, students will nest REPEAT commands inside one another to draw intricate designs, learning how to return the turtle to its starting position and direction after each iteration.

Uploaded by

Arnold Pang
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
2K views4 pages

Lesson Plan For Nested REPEAT

This lesson plan teaches students about using nested REPEAT commands in Logo programming. Students will learn the syntax of REPEAT, which repeats a set of commands a specified number of times. They will practice using REPEAT to draw basic shapes like squares and rectangles. More complex examples show how adjusting the repetition count and turning angle can produce different polygons and star shapes. Finally, students will nest REPEAT commands inside one another to draw intricate designs, learning how to return the turtle to its starting position and direction after each iteration.

Uploaded by

Arnold Pang
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lesson plan Title : Nested REPEAT Objectives : In this lesson, students will learn about: 1.

the concept of repeating a set of actions. 2. the syntax of command REPEAT. 3. the application of REPEAT in Logo programming. Prior knowledge : the application of commands FD, BK, RT, LT, CS Final product expected : draw the following figure with the command REPEAT 15 [FD 100 REPEAT 5 [FD 50 RT 144] BK 100 RT 24]

Subtask 1 : The syntax REPEAT # [xxx], where # refer to a whole number, and xxx refer to a command. i. Demonstrate the use of REPEAT by show the difference between the result of FD 100, REPEAT 5 [FD 100] and REPEAT 10 [FD 100].

Teacher : Where do we put the command which is to be repeated? Teacher : How to control the number of repetition? Teacher : where is the '[' and ']' keys in the keyboard?
Ask the students to guest the result of the command REPEAT 5 [FD 100 BK 50] ,REPEAT 4 [FD 100 RT 90] and REPEAT 5 [FD 100 RT 45] and/or some other examples until they grasp the syntax of REPEAT. Subtask 2 : The application of REPEAT in drawing a square or rectangle. i. Demonstrate the command REPEAT 2 [FD 100 RT 90] to draw half of a square. ii. Ask a student out to modify the command to draw a full square, and then change the length of the square by varying the parameter / number following the command FD. iii. Ask the students to draw a rectangle. (explain to them the differences between and similarities of square and rectangle beforehand if necessary.)
P. 1

ii.

Teacher : The command contains 3 parameters, i.e. the number of repetition, the turning angle and the lengths. How do these parameters alter the resulting shape?
triangle Number of repetition / 3 sides Turning angle 120 pentagon 5 72 hexagon 6 60

P. 2

iv.

Encourage the students to draw other geometric figures, such as other polygons and star.

Teacher : What is the relationships between the interior angles of the polygons and the turning angles? Teacher : What is the relationships between the number of points of the stars and the turning angles ?
number of points turning angles 5 144 9 160 15 168 25 172.8

Subtask 3 : The application of REPEAT in drawing figures which contain geometric figures/ polygons, with emphasis on the ending position of the turtle. i. Demonstrate the command FD 100 REPEAT 3 [FD 50 RT 120] BK 100 to draw the figure :

Teacher : How to put the turtle back to starting position in starting direction?
ii. Ask a student out to modify the command to draw a similar figure by varying the REPEAT parameter and command inside the REPEAT number parentheses. Ask the students to draw the figure :

iii.

Answer : FD 100 REPEAT 5 [FD 50 RT 144] BK 100

Teacher : How to use REPEAT to draw the above figure for many times?
Hint : REPEAT ______ [FD 100 REPEAT 5 [FD 50 RT 144] BK 100 RT ____] * Challenge of the lesson * Draw this figure :

P. 3

Answer : REPEAT 25 [FD 250 REPEAT 25 [FD 50 RT 172.8] RT 172.8] END

P. 4

You might also like