Module 1 · Learning to Drive
Lesson 5 · The Polygon Function — Knowledge Checks
Name Date
What turn angle will polygon compute for a 12-sided shape (a dodecagon)?
Answer Why?
polygon (8, 25) traces an octagon about 2 m around. What does polygon (8, 50) do?
Answer Why?
Without a general polygon function, you'd write one function each for square, triangle, pentagon, hexagon, and octagon. With polygon, how many functions do you need?
Answer Why?