Tuesday, October 28, 2008

201 next assignment: Polygon, due 11/18/08

Requirements for the Polygon program:
  • it uses a Java GUI
  • it has a button labeled Clear to clear the drawing screen
  • it instructs the user to click on the screen to set vertices for a convex polygon and draw big dots where the vertices are
  • when the user clicks sufficiently near the first dot, the polygon is closed
  • it reports the perimeter and area of the polygon
  • it allows the user to scale (make larger or smaller) or rotate the polygon using GUI controls
  • it uses a Matrix library that the student writes and affine transformations as shown in class to accomplish the scaling and rotating
  • it updates the perimeter and area of the polygon as the user changes the scale
Due date: at the beginning of lab on Tuesday, November 18.

I'd get started now if I were you!

No comments: