CpSc 210, Section 1
                             Assignment 1 
                             May 25, 2000 


Due: Wednesday, May 30 by 11:59 p.m.

Assignment:  Complete a method to check for overlap of two rectangles.  (20 pts.)


Total point value of assignment:  20 points
Not accepted late.

This assignment is to be done INDIVIDUALLY.



Create a file, A1.java, which will contain assignment.  A1.java will contain 
a main method and a method 


public static boolean rectangleOverlap ( Rect r1, Rect r2 ) // post: If r1 and r2 share any pixels in common return true; // Otherwise, return false.

For example, Suppose your code contains the following sequence: Pt p1 = new Pt ( 10, 10 ); Pt p2 = new Pt ( 40, 40 ); Pt p3 = new Pt ( 60, 60 ); Rect r1 = new Rect ( p1, p2 ); Rect r2 = new Rect ( p2, p3 ); then rectangleOverlap ( r1, r2 ) should return true.


Your main method should contain a test program which tests the above examples, together with any other test data that you think would be helpful.  A1.java may contain any additional methods that would be helpful.  For example, you might write a method to print out "CPSC 210", your name, the assignment number, and a brief description of the assignment.


It is not required, but is a good idea to have the program draw your test rectangles to be sure the rectangles are as you think they are.

Other requirements: The first operation of your main program must be to print "CPSC 210", your name, the assignment number, and a brief description of the assignment.

Follow the style standards to be found on your instructor's web page for CPSC 210. Submit your program using the handin command. There is a link to the handin description on the CPSC 210 lab page (www.cs.clemson.edu/~lab210).
Grading rubric:

	In the opinion of the instructor the program is an honest attempt
		to complete the assignment as described  1 pt.

	The program compiles without error.  4 pts.

	If the two previous requirements are not substantially met, no further 
	points will be awarded.

    Correctness, documentation, and style.  15 pts.
    Points will be subtracted for failure to follow style standards.