← Free Lesson Plans for Teachers Free Lesson Plan Grade 6Math & Engineering2 sessions x 45 minFinch2-AP-142-AP-12 ⬇ Download PDF (lesson, student sheets & answer key) Driving question: How can one procedure draw any regular polygon? Students program a Finch robot with a marker to draw regular polygons, discover that the robot's turn at each corner is 360 divided by the number of sides, and write a procedure (function) with parameters for the number of sides and the side length. In Session 2 they nest their polygon procedure inside a second loop to draw rotating patterns and test the procedure with a range of inputs, including ones that should fail. CSTA codes are from the 2017 CSTA K-12 Computer Science Standards and show which standards this lesson practices. This lesson has not been reviewed or endorsed by CSTA. CSTA released revised PK-12 standards in 2026. Students will: Geyer resources for this lesson Exit ticket: "Write a call to your procedure to draw a regular nonagon (9 sides) with 12 cm sides. What is each turn?" (polygon(9, 12); 40 degrees.) Use these sheets in class, or download the PDF for a print-ready layout. Student Sheet 1 Print-ready version in the PDF. Name: ______________________________ Date: ______________ Rule for the turn angle of a regular polygon with n sides: Student Sheet 2 Print-ready version in the PDF. Name: ______________________________ Date: ______________ Write your procedure: What check did you add so the procedure handles bad inputs? The turn the robot makes is the exterior angle. Students may confuse it with the interior angle they measure inside the drawn shape; interior = 180 - exterior for each corner. Need a print-ready copy? The PDF includes the lesson, student sheets, and answer key. Free for classroom use. You may print and copy this lesson for your students. © Geyer Instructional Products. Standards text: CSTA K-12 CS Standards © CSTA.Overview
Standards
Code Standard CSTA 2-AP-14 (2017) reusable program parts that take inputs CSTA 2-AP-12 (2017) programs with loops inside loops and decisions Learning Objectives
Materials
One robot per group of 2-3 students.
Classroom set option. The flock includes 5 markers that fit the Finch pen mount.
Checking drawn angles.Also needed
Vocabulary
Word What it means regular polygon A polygon with all sides equal and all angles equal. exterior (turn) angle How far the robot turns at a corner; for regular polygons, 360 / n. procedure (function) A named set of instructions that can be used again. parameter An input to a procedure, such as the number of sides. nested loop A loop inside another loop. Safety Notes
Before You Teach
Warm-Up (5 min)
Procedure
Find the pattern (20 min)
Write the procedure (20 min)
Nested pattern (Session 2) (20 min)
Test cases (15 min)
Share (10 min)
Differentiation
Support On-level Challenge • Give the procedure shell with blanks.
• Use only n = 3, 4, 6.
• Provide a turn-angle chart.• Complete the procedure and student sheets as written. • Add a parameter for color and change the beak color for each shape.
• Draw a star polygon (turn 144 degrees, 5 times) and explain the total turning.
• Compute the interior angle: 180 - 360 / n.Assessment
Criterion Beginning Developing Proficient Turn angle reasoning Not yet Uses formula Explains why each turn is 360 / n Procedure with parameters Hard-coded One parameter Two parameters, reused correctly Testing One case Several cases Includes edge cases and fixes errors Extensions
Student Sheets
The Turn Pattern
Shape Sides (n) Turn at each corner Total turning Triangle 3 Square 4 Pentagon 5 Hexagon 6 Octagon 8 Procedure and Test Cases
Test call Prediction What happened Pass or fix? polygon(3, 20) polygon(10, 8) polygon(2, 20) polygon(1, 20) polygon(0, 20) Show answer key (for teachers)
Answer Key & Teacher Notes
Teacher notes
define polygon(sides, length):
