Hallo everybody! ;D

Newbie here ;D

I have an exercise from my University and i don't know how to do it.

Here it is...

I want my applet to read from the file coord_data_file.txt an Integer for example N=5 (the number of points) and the five points,for example
16384 19200
16384 18666
16384 32000
16384 21761
10000 10000

The points must be between 0 and 32768
To read the points we must use the nextInt() method of java.util.Scanner

And what the program should do is the following...

We must draw the points calling the PointPlotter.java(i will give you a .zip with all the files included)
After that we choose a point (we name it p).We compare the angle that it makes with each one of the other points (we name it q) with the compareTo method.
Then,we sort the points according to the angle that they make with the p.
We check if 3 or more of the sorted points have the same angle to p.If we find them then all these points belog to the same straight line.

So,please,can anyone help me ??? ???

You can download all the files from here:http://eclass.aueb.gr/TMA212/document/%C5%F1%E3%E1%F3%DF%E5%F2/%C5%F1%E3%E1%F3%DF%E1%202/assignment2.zip
And some images here:[URL=http://img227.imageshack.us/my.php?image=assignment2ik6.jpg][IMG]http://img227.imageshack.us/img227/1653/assignment2ik6.th.jpg[/img][/URL][URL=http://img507.imageshack.us/my.php?image=assignment2ga3.jpg][IMG]http://img507.imageshack.us/img507/1404/assignment2ga3.th.jpg[/img][/URL]