CS 101 - Intro to Computing, Spring 2008

Lab 5

Lab Assignment

Due: Thursday 10/2/2008 by 11:59 pm

For this lab assignment, complete the following:

  1. Create a "spirograph" style image. This will be done by repeatedly drawing shapes and where the starting point's orientation is modified between each time the shape is drawn. In this manner the shape is to be redrawn enough times to sweep out a complete circle.

    For this lab, if you take the star shape from finger exercise 1 and repeat it multiple times, it would look something like:

    You can use any shape you would like except a square. The shape should be drawn at least 8 times. You can draw it more than 8 times if you wish.

    Be sure to include a comment contain the following:

  2. You are also to submit the Java file electronically by to the Digital Drop Box inside of Blackboard. You only need to submit the java source code file. Please make sure you identify your submission with the name of Lab 5.

  3. You are also to submit a hardcopy of your java source code file. You can
Note that I created the following based on the idea from this lab. I have the size and the color of the star change with respect to the loop counter. Also the shape is drawn in two circles instead of just one.