CS 1713 Introduction to Computer Science:
Comments on Project 1
This project was graded out of 20 points.
- Be sure to test the accessor methods, not just the toString.
- The valid method must be tested separately in the tester, not just in
the toString method.
- Do not include mutator methods unless you are told to do so or they are
needed for some other part of the project.
- Do not refer to a triangle as being true or false. Use the words
valid and invalid.
- You dont need to put if (valid() == true).
- Make sure you read your output to see if it makes sense.
- Make sure you understand the difference between while and if.
- Your source code should be nicely formatted without long lines and with
proper indentation.
Use Source -> Format in eclipse.
Below is some sample code:
Triangle.java
TriangleTester.java
output