Introduction to Computational Thinking


Computational thinking and the novice teacher, John Underwood, Fernando Alegre and Juana Moreno, Annual Meeting of the Southwest Educational Research Association, New Orleans, Louisiana, February 15, 2018.

Examples of coding activities

Fishes on a tank
some_text Code Lesson Link to answer
In this activity a fish is drawn using this code:
      fish(c) = translated(parts,2,-1)
       parts = eye & colored(head & body, c) & colored(tail & fin, dark(c))
       eye = translated(solidCircle(1/2), 0, 2)
       head = sector(15, 345, 3)
       body = scaled(sector(90, 270, 3), 2, 1)
       tail = translated(sector(-90, 90, 3), -7, 0)
       fin = translated(sector(-120, -60, 3), -2, 5)
And the relationship between blue and orange fish in all the tanks is represented by this line of code:
  numOrangeFish(numBlueFish) = numBlueFish * 2 - 1      
Dots on a line
some_text Code Link to answer
In this activity you need to draw dots along the three lines forming a triangle.
Fake tree dimensional images
some_text Code Lesson Link to answer
The objectives of this activity are: to demonstrate the changes in an isometric projection when the model objects are translated in 3D space, and to describe how the limitations of 3D geometry can be overcome to create virtual objects that are impossible in reality.
some_text Link to code Lesson Link to answer
You start from a simple triangle that is repeated several times to build parts of the mosaic. Then, you use rotations and scalings to combine those parts to form the full mosaic.