RobotArt: Assignment #2

Due: Next Tuesday, October 7th, 2008

  1. Write a program for your Scribbler to draw a 5-point star. [Hint: Each vertex has an internal angle of 36 degrees]. Your program should include a function called, drawStar(sideLength), so that you can use it over and over again to draw stars of different sizes.
  2. Write a main program to use drawStar to draw at least 5 stars (use a loop) of different sizes (say sides of length 3-10 inches) on the same sheet of paper.
  3. Write a program for your Scribbler to create some abstract art.
Hand in the two programs, and sheets that show your robot's drawings. For the second program, try and be creative, include repetition, use different colors etc.

Some pervious works of art