01/08/2026

Week 2 Assignments

1 The Shape Gallery 

The town is opening a tiny art gallery and Turtle has been asked to fill the front window with a row of shapes. A triangle, a square, a hexagon and a star — lined up like paintings, each i a colour that pops.
Hint: the turning angle for a shape with n equal sides is `360 / n`.

Your mission: draw a triangle, a square, a hexagon and a star in a row, each a different colour.

2 Brisbane 2032

The 2032 Summer Olympics are coming to Brisbane, and the Lord Mayor needs a symbol for the posters. Five interlocking rings, in blue, black, red, yellow and green — the most famous drawing in the world. Turtle is nervous, but you are ready.

Your mission: draw the five Olympic rings using circle(), setting the line width with pensize(), in the correct colours and layout.

Hint: lift the pen (penup()) to move between ring positions, then put it down (pendown()) to draw.

3 Turtle Gets a New Job

NASA has a strange request. They want enormous outline numbers drawn on the ground — so big that astronauts on the International Space Station can read them from orbit. Ordinary solid digits will not do; these must be outline-font numbers, hollow in the middle.

Your mission: Write a Turtle program that draws outline-font numbers 0–9. Add a header comment (your name, the date, what the program does).

No comments: