Question: Please use Java, Thank you. Write a program named DistanceFormula that prompts the user for the coordinates of two points in a Cartesian Plane. The
Write a program named DistanceFormula that prompts the user for the coordinates of two points in a Cartesian Plane. The program must then compute and output the distance between those points. Note: All coordinates need to be ouble values. In a cartesian plane the distance between two points, P1=(x1,y1) and P2=(x2,y2), is given by the formula dist=(x2x1)2+(y2y1)2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
