Distance between two points: Draw a flowchart for this program and then write the C++ code. The distance between two points (x1, y1) and (x2, y2) on a Cartesian coordinate plane is given by the equation:
D = sqrt((x1 - x2)^2 + (y1 - y2)^2)
Write a program to calculate the distance between any two points (x1, y1) and (x2, y2) specified by the user. Use good programming practices in your program. Use the program to calculate the distance between (2, 3) and (8, -5).
How do you determine the distance between two points in a three-dimensional space?