PROG5
CMP 12A
Winter 2005

Due: 3/14/2005, Monday, 9am

Objective:

Putting it all together -- write a Java program with YOUR OWN CLASS, methods, arrays, etc. the works.

Assignment:

Sample Sessions:

Reminder!!!

All the work submitted here should be based on your own (or the pair's) effort. Plagiarism of other's works e.g. those found on the web, is considered cheating.

Submission:

Note:

Refer to the programming guide link for specifics on requirements and grading guide.


Notes on Color:

You can change your output into a color image using the xv program on the suns. You don't need to change anything in your program. Select the Windows button, then select color editor. On the color editor popup window, click on the random button. Each time you change the color map, your image will have a new set of colors!

On windows, you can do something similar. First, convert the pgm image into a gif or jpg image using some image conversion utility such as Imagemagick . View the image file using photoshop. Under the Image tab, first select mode and change to indexed color. Under the Image tab again, select mode again, and this time select color table. There are several predefined color tables you can pick from to alter the colormap of your image.

Color versions of session 1.

Color versions of session 2.