Computer Programming (II)

Programming Assignment 2

March 8, 2005

 

Recall that we discussed in class the programming problem in the lab test held on March 1. In this assignment I would like to further test your programming ability and imagination. Design five patterns similar to or more complicated than the ones discussed in class. For each pattern write a program using top-down stepwise refinement. You can include your refinement steps in a block comment (between /* and */) or spread the comments throughout your code.

 

The assignment is due midnight, March 15. I will give extra points to those who 1) turns in his or her assignment early and 2) does a good job designing new patterns.