CS 1713 Introduction to Computer Science, Fall 2005 Project 1 Comments
- Be careful about the difference between < and <=.
A triangle with sides 1, 1, and 2 is not valid.
- Follow the standard for naming variables.
Names of objects start with a lower case letter and names of
classes start with upper case letters.
- Use descriptive identifiers.
semiArea is not a good name for the square of the area.
- Several students used just the semi-perimeter instead of the area.
- If the triangle is invalid, do not try to apply Heron's formula.
- Make sure toString and getTypeString return the correct strings
as described by the assignment sheet.
- isScalene() and isIsoceles() should return false if the triangle
is invalid.
- 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.