This ZIP contains the source code for both tasks.

The first task in comprised of Rectangle.java and RectanglePoints.java. (RectanglePoints contains main).

The second task is contained within Numbers.java

Also contained is a PDF breaking down the user process within each program.

All methods are commented to give as a good an explanation of each function as possible.