CS 1713 Introduction to Computer Science:
Comments on Project 2
This project was graded out of 20 points.
- GradeList should not need a numGrades field.
- Do not use loops unless they are needed.
- For the set and get methods, the index should start at 1, not 0.
- These should make sure the index parameter is in range.
Use the same test for each method.
- For the max and min, cannot start by initializing to grades[0].
This may have 0 weight.
Almost everyone had this error.
- For max and min, ignore grades of 0 weight, not 0 value.
- Having the tester print single numbers without explanation is not useful.
Below is some sample code:
GradeList.java
GradeListTester.java
output