CS111 Lab 6 Solutions

Solutions to the programming problems in lab 6 are presented by first answering the following five questions and then writing the actual code for the problem.
  1. How is the pattern drawn?
  2. How are consecutive calls to the pattern different?
  3. How do we move into position to draw the next pattern call?
  4. How do we meet the invariant, if any?
  5. What is the base case?
The questions are explained in more detail in the Lab 6 description.

Solution code for the problems are available in the CS111Lab6_Solutions folder in the /usr/users/cs111/download/labs_morning directory on nike.wellesley.edu.

  1. BoomerangWorld
  2. EiffelWorld
  3. InvertedTriangleWorld
  4. NestedWindowWorld
  5. NestedPolygonWorld