1 Theory & Coordinates 📐
1. The Grid System
Recall the Cartesian coordinate system used by Turtle.
2. Headings & Orientation
Match degrees to compass directions.
3. Drawing Mechanics
2 Code Comprehension & Debugging 🐞
The code below is supposed to draw a blue pentagon. There are 4 errors. Find and fix them.
Buggy Code:
Your Corrected Code:
3 Coding Challenges ⌨️
Task A: The Starburst Pattern
Instructions:
- The turtle must start at the center
(0,0)for every line. - It must draw a line 100 pixels long, then return to the center.
- It must change angle by 90 degrees after every line.
- Crucial: You must use a
forloop to iterate through thecolour_list. - Use
setheadingor simpleright/leftturns.
Task B: Concentric Squares (Subprograms)
Write a program from scratch to draw Concentric Squares centered at (0,0).
Requirement 1 Define
draw_centered_square(size, fill_color).
Requirement 2 Use
penup() and goto() to center the shape (offset by size/2).
Requirement 3 Call function 3
times: Black (200), Red (150), Yellow (100).
Assessment Results
Here is how you performed on the revision tasks.