Jump to content

Activities/Turtle Art/Tutorials/Triangular Numbers Program

From Sugar Labs
Revision as of 00:14, 14 July 2011 by Mokurai (talk | contribs) (TA Triangular Numbers Program)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Turtle Art program to generate and annotate triangular numbers.

Main program

Set up variables and place turtle

Put captions above table of annotations

Create triangle of colored dots with annotations

Create one line of diagram, including annotations

Write number of dots in line, and total number of dots so far in new row of table