Fundamentals of Computer Science II (CSC-152 98S)

Assignment 3: Matrices

Assigned: Friday, February 13, 1998
Due: 8am, Friday, February 20, 1998

Summary. In this assignment, you will be developing a Matrix class that permits expansion and contraction.

Expectations. You are expected to turn in a working, well-commented, and well-tested version of this assignment. It should be possible to generate readable javadoc from your program and to understand how to use your class by reading only that javadoc. In addition, you should provide a reasonable test stuie.


Develop and test a Matrix class that supports at least the following operations:

Extra Credit

Optionally, develop and test a Pair class that permits you to create and use pairs of integers and use that in your Matrix class.

It is likely that Pair will support at least.

Within your Matrix class, it is likely that you will want to add variants of at least set and get. You should also add a positionOf(Object obj) method that returns a position in which obj appears if it appears in the Matrix and a positions(Object obj) that returns all the positions in which obj appears.

Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.

Source text last modified Wed Feb 18 07:28:23 1998.

This page generated on Tue Jan 12 11:44:34 1999 by SiteWeaver.

Contact our webmaster at