Question: write a program that asks the user for three integers ( fistlnt, Homework 2-4 In a cartesian coordinate plane, the distance between two points P,

write a program that asks the user for three integers ( fistlnt,
write a program that asks the user for three integers ( fistlnt,

Homework 2-4 In a cartesian coordinate plane, the distance between two points P, with coordinates (X,Y) and point P2 with coordinates (XTY2) is given by the formula dist = V (x - x)2 + (y2-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 Pi Enter X1: Enter Yi: Coordinates for P2 Enter X2: Enter Y2: 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. Homework 2-4 In a cartesian coordinate plane, the distance between two points P, with coordinates (X,Y) and point P2 with coordinates (XTY2) is given by the formula dist = V (x - x)2 + (y2-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 Pi Enter X1: Enter Yi: Coordinates for P2 Enter X2: Enter Y2: 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

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!