CS 1713 Introduction to Computer Science, Spring 2006 Project 1 Comments
This project was graded on the basis of 20 points.
It was graded very leniently.
If you got less than 18 on this project, you should see me.
Bring your returned graded project so that we can discuss it.
- Format your source code so that no lines are longer than 80 columns.
- The assignment specified the order of the parameters for the constructor
of the Circle. The radius must come first!
- You need to follow the specifications.
The methods need to have the exact name and parameters as in the
project description.
- No other public methods besides the one required.
- No public attributes.
- You should use private methods to simplify your program.
A double getDistance(Circle c) method would be useful.
- toString should do exactly what it says in the assignment.
- The distance between points requires uses the Pythagorean theorem.
You cannot just compare x and y differences separately.
- Use x*x instead of Math.pow(x,2).
- You need to test 2 inequalities to see if 2 circles intersect.
The distance cannot be too big or too small.
- Be careful about using less than or equal when you mean strictly less.
The test for inside requires a strict inequality.
- inside should return true if the passed parameter is inside, not the
other way around.
- You only need to create a single Scanner to read in the six values.
- Nobody came close to getting the area of intersection correct.
A zip file of a completed Circle class can be found
here.
Note that the tester included with this
project is not the one specified in the assignment.