Your instructor may assign one or more of the following problems. Don’t feel that you must do all the problems; for the homeworks, you are only required to do those that are explicitly assigned via Moodle.

  1. Write a program called turtle_directions.py that prompts the user for a file name containing directions for a turtle, and then uses turtle graphics to execute the directions. The file of directions will have one command per line. Valid command formats are as follows: where

    NOTE: The "point" should be drawn using the turtle method dot.
    NOTE: a line may have extra spaces at the beginning or end.
    Include with your submission a sample file of directions that uses each command at least once.

  2. Extend your circle class from the previous homework in the following ways.

    With these things in place, you should be able to run circle_write.py to create a new circles.txt file and then run circle_driver.py to print those circles using the Python turtle.

  3. Extend your rectangle class from the previous homework in the following ways.

    With these things in place, you should be able to run rectangle_write.py to create a new rectangles.txt file and then run rectangle_driver.py to print those rectangles using the Python turtle.

Checking In

Submit all appropriate files for grading, including code files, screen captures, supplemental files (e.g., image files), and text files. We will grade this exercise according to the following criteria: