CS 1713 Introduction to Computer Science, Fall 2007 Project 2 Comments

  1. Use appropriate names for identifiers.
  2. The compareTo in Name should compare the last name first.
  3. 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.
  4. 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.
  5. If you write your sort as a double loop instead of calling a method in the main loop, it is harder to debug.
  6. 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.
  7. It is not good to turn in a project with syntax errors so that it does not compile.
  8. All floating point numbers should be displayed with 2 decimal places.
  9. 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