CS 1713 Introduction to Computer Science, Fall 2007 Project 2 Comments
- Use appropriate names for identifiers.
- The compareTo in Name should compare the last name first.
- When you develop your own tests, you should be able to tell whether the
output is correct by reading the output without referring back to the
program.
- The getStudent in Course should return a copy
of the student.
To make a copy, make a new student and then set all of the grades.
- If you write your sort as a double loop instead of calling a method
in the main loop, it is harder to debug.
- Use StringBuffer to produce the strings in Student.
It defeats the purpose if you create strings for the grade arrays
in a loop by string concatenation.
- It is not good to turn in a project with syntax errors so that it does
not compile.
- All floating point numbers should be displayed with 2 decimal places.
- Remember that you are to do these projects without outside help except
for help with syntax errors. If you need other help, come and see me.
You are not allowed to copy another person's code.
Here are some solutions:
CourseTester
Course
Student
Name
output