when: Monday morning
where: at school
Reviewing last week assignment
Last week, students were asked to draw this shape using double for loops if possible. Only 1 in 4 students managed to use double for loops but none of them see this as drawing a triangle 3 times.
Nested for loops revisit
Using the homework as a starting point, I simplified the task by having them imagine the triangle to be just a line. After they wrote the simplified program, I asked them to change the line into a triangle. Eventually, we made our program to take any number of petals.
num_petals = 3
speed 10
pen blueviolet
for [1..num_petals]
for [1..3]
fd 50
rt 120
rt 360/num_petals
rt 90
for x in [blue,green,pink]
jump 25,-75
for y in [yellow,orange,red]
dot x, 21
dot y, 7
fd 25
Homework
Draw a flower garden using at least double loops. I encouraged students to use triple loops or as many as they fancy. I also mentioned that I didn't get to review functions but that could be handy for them to use for this homework. Some of them seemed intrigued and I am hopeful that they will do their own review of functions to do this homework.
No comments:
Post a Comment