Question: TUICOIN - In a cartesian coordinate plane, the distance between two points P, with coordinates (X,Y) and point P, with coordinates (X, Y) is given
TUICOIN - In a cartesian coordinate plane, the distance between two points P, with coordinates (X,Y) and point P, with coordinates (X, Y) is given by the formula dist = V (x2 - x)2 + ( 72-y,)? Write a program that prompts the user for the coordinates of both points, please note that all coordinates are double values. Your prompts must be: Coordinates for P1 Enter X1: Enter Yi: Coordinates for P2 Enter X2: Enter 42: Your output must be of the format: Distance between P1 and P2 = computed distance Please make sure to end each line of output with a newline. Please note that your class should be named DistanceFormula
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
