Question: (IN JAVA) Path: In this homework, you are to write a method (not a program!) and call it getPathLength. It receives 6 (omigod 6!) arguments:

(IN JAVA) Path: In this homework, you are to write a method (not a program!) and call it getPathLength. It receives 6 (omigod 6!) arguments: the x-coordinate and the y-coordinate of the first point in the path (2 values) the x-coordinate and the y-coordinate of the second point in the path (2 values) the x-coordinate and the y-coordinate of the third point in the path (2 values) The method returns the length of a path that starts at the first point and goes to the second point and then goes on to the third point. The method computes the length of the path by figuring out the distance between the first and second points and then the distance between the second and third points. The method you write must make use of the method distance2p. (You implemented that method in an earlier Lab.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!