Saturday, 2 May 2015

Week 7 - Coding in the Classroom

By using the Khan Academy site, I have been able to choose an activity that I would use in my classroom to teach my students. This activity will show the students how to draw the letter H by using different coordinates. The coordinates will go from, x(distance from left to right), y(distance from top of page), w(width), and h(height).

To draw a H using rectangles, we need two tall ones on the side and a short one connecting them in the middle. The code for the first rectangle is rect(80, 70, 60, 240);. To create the second the rectangle you use the codes from the first rectangle but need to move the second rectangle to the other side of the page. Ton do this you would make the x a bigger number. The second rectangle would be rect(240, 70, 60, 240);. For the middle rectangle the code will be rect(140, 170, 100, 24);.

This activity follows the Australian Curriculum Ban of foundation to year 2. Follow, describe and represent a sequence of steps and decisions (algorithms) that are needed to solve simple problems. ACTDIP004

No comments:

Post a Comment