'15-'16 General Discussion for Lesson 3.9

To teach this lesson on looping, I will be writing a small program using pseudo code to display the text “Hello World, I am coding!!” five times. I will ask the students if they can perform the same program using any other method. I will then introduce the concept of loops, where the students will learn how loops reduce the repeated statements. Then i will demonstrate how the previous program can be written using loops. The students can then come up with their own program using loops.

I would like to take the students beyond the basics of loops and random numbers by applying them to an art creation. For instance perform some geometric figures with random shapes, color them with random colors. What if we create random music, where the notes, duration, pitch are random variables. I think they could connect arts, math, science with computer science.

1 Like

I like to use videos to strengthen the instructions in class, so I will be playing this video to emphasize loops. Here is the video link. https://www.youtube.com/watch?v=mgooqyWMTxk. I will begin with the challenge requirement where a loop is required to draw seagrass randomly on the screen. Here is my link to share the challenge https://studio.code.org/projects/applab/Tn6rlu0Wz1-IIIzHgioQqA
I can extend the challenge by asking the students to draw four fishes, seastars and sunbeams on the screen using the loop structure.

2 Likes

I would like to explain the students that the syntax used in loops is language dependent, but the concept to be implemented is the same. This can be demonstrated using the appropriate pseudo-code.

The following hyperlink can be used to access the challenge exercise https://studio.code.org/projects/applab/eU8X_c5xVMMicAnrgCkp1w

We can think in adding objects or importing pictures related to our sea theme, we can look for cartoon characters such as Sponge Bob Square Pants and some of his friends, or maybe Triton or other mythological creatures.

1 Like