Yes, the x, y, and distance were defined. How do you define a sqrt? I looked in my books and on the net and couldn't find anything.
Didn't you just mentioned that you are going to use the method that is defined in the Math class?
Joined: Jan 30, 2000
[Steph]: How do you define a sqrt?
Probably you just want to use Math.sqrt() as Diels suggested. It's possible to define your own, but most likely that's well outside the scope of this problem. If you really want to know the details, you can google "Newton's method" and "square root" together to get a lot of discussion of the most common technique. But only do that if you're sure you can't just use a pre-existing method like Math.sqrt(). [ December 05, 2005: Message edited by: Jim Yingst ]