Anda di halaman 1dari 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

Anda mungkin juga menyukai