Chris Judd▸ Task 7: Visual Programming

This Maths activity embeds a repeat loop within another repeat loop.

Initially students are presented with a program to draw a square in the Scratch environment. Then the repeat for the square instruction is embedded in another repeat loop, which uses the square instructions 36 times with a 10 degree turn between each loop. This produces an attractive design.

After plenty of reading and discussion about what is going on with this code, students can attempt to draw a triangle, and a related design based on the triangle.

Students will recognise the pattern:

number of sides * number of degrees of each turn = 360º.

They may arrive at the number of degrees by using the inverse operation:

360 / number of sides = number of degrees of each turn.

Students can be extended with an invitation to code any regular polygon. #cserTask7

G+ Comments

no plus ones, 0 comments

    + There are no comments

    Add yours

    This site uses Akismet to reduce spam. Learn how your comment data is processed.