CS 1713 Introduction to Computer Science, Fall 2005 Project 1 Comments

  1. Be careful about the difference between < and <=.
    A triangle with sides 1, 1, and 2 is not valid.
  2. Follow the standard for naming variables.
    Names of objects start with a lower case letter and names of classes start with upper case letters.
  3. Use descriptive identifiers.
    semiArea is not a good name for the square of the area.
  4. Several students used just the semi-perimeter instead of the area.
  5. If the triangle is invalid, do not try to apply Heron's formula.
  6. Make sure toString and getTypeString return the correct strings as described by the assignment sheet.
  7. isScalene() and isIsoceles() should return false if the triangle is invalid.
  8. After finishing the project, go back and reread the project description to make sure you have done what was asked.
A zip file of a completed project can be found here.