CS8 Programming Assignment 2

CS8 Programming Assignment 2

Description and Requirements

In this programming assignment, you will implement 4 drawing functions using turtle module. Function names and parameter properties must be as specified.
  1. A convex regular n-corner polygon with side d, for n = 2, 3, 4, etc, as explained here.
    The function name: drawPoly(myTurtle, n, d)
  2. A regular n-point star with side d, for n = 5, 6, 7, etc, as explained here.
    You can use either (n,2) or (n,3) families.
    The function name: drawStar(myTurtle, n, d)
  3. An n-corner Spiral of Theodorus with side d, for i = 2, 3, 4, .., n, as explained here.
    The function name: drawTheo(myTurtle, n, d)
  4. Concentric n circles with radii i*d, for i = 1, 2, 3, .., n.
    The function name: drawCirc(myTurtle, n, d)

What To Submit

Write all of your functions in a Python text file named pa2.py, and submit your assignment via Dropbox (see the course website for the link). Submit only the functions; no test programs outside the functions are needed.
Important: Add your full name and CSIL login name as a comment in the first line of your file, for example:
# Alice Smartpants, csil login: smartpants

cs8 Web Site