Assignment 7 (Extra Credit)
Chin's Assignment 7 webpage
This assignment is out of 10 points. The following is how the grading breaks down.
Originial Code: 10%
Exception classes: 20%
Since this was extra credit (and time was short and the code was long), I graded this mostly with a script and a Java test program. The program connected CircuitElements together and produced the 5 different cases when an exception should be thrown and tested to see if you threw the required exception. (This is why you shouldn't be catching exceptions in places other than main() or other high-level funtions; you don't know how your code will eventually be used, so you should pass exceptions up the line when it makes more sense to do so.)
If my comments say "Bad throw" it means that, though you had code to throw it, when the test case actually ran, no exception of that type came out when it should have.
My abbreviations are pretty obvious, but here they are anyway:
|~ztomasze Index : TA
: Assignment 7
|Last Edited: 21 Dec 2002|
©2002 by Z. Tomaszewski.