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


Grading Key for Homework 3

This grading key is not yet complete.

For this assignment we'll work under a "start with 100 points and modify appropriately" model. In the future, we may work under different models (including "start with 85 points" or even "start with a B").

Basics

Everyone should have turned in a Matrix class and a MatrixTester class. The following notes pertain to those classes. There was also extra credit based on a Pair class and some additional methods for the Matrix class. Those are discussed elsewhere.

Are the basic methods (constructor, get, set, etc.) included, working, and tested? Each missing method is -5. Each method with no corresponding testing method is -2. Each method with testing method but no evidence of testing (a testing method alone is not sufficient) is -1. Each nonworking method is an additional -3.

Note that this is relatively sympathetic grading. Nonworking should really be an automatic -50 or such.

Style

Does every method have preconditions and postconditions? Note that preconditions and postconditions do not have to appear in the test program (although it would be nice if they did). If preconditions and postconditions do not regularly appear, subtract 10.

Students are not required to use assert or similar methods. If they do so in most of their methods, they receive an extra 3 points for this assignment only.

Does every method in the primary class have a javadoc comment explaining the purpose of the method? If not, subtract 5 from their score.

Does every field/attribute in the primary class have a javadoc comment explaining the purpose of the field? If not, subtract 5 from their score.

Are exceptions used to indicate errors? If not, subtract 5. Are error messages printed by the utility class (Matrix)? If so, subtract another 5.

Are the more confusing parts of the code commented? For particularly helpful comments, add 2. For no in-code comments, subtract 5. For something in between, scale appropriately.

Special Cases

Can you create a matrix of size 0x0? If not, subtract 1.

Can you insert a row or a column in a matrix of size 0x0? If it's not clearly documented what happens, subtract 1.

Extra Credit

A working Pair class is worth an extra five points. A working positionOf or positions is worth another five points.


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 Fri Apr 24 07:28:09 1998.

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

Contact our webmaster at rebelsky@math.grin.edu