"Fun with Coordinates"

I also need some help with a program that takes two points given by the user and outputs the following:

what quadrant or axes they are located
calculates and displays the lines euclidean (sqrt((Xp-Xq)^2 + (Yp-Yq)^2)) and manhattan ((abs(Xp-Xq)) + (abs(Yp-Yq)))distance
calculates the slope and y-intercept.

if someone could help explain to me how to do this that would be great! thanks
how to do this

Which part?
the distance part. thanks!
Topic archived. No new replies allowed.