Question: Write a c++ program that asks the user to type the coordinate of 2 points, A and B (in a plane), and then find the

Write a c++ program that asks the user to type the coordinate of 2 points, A and B (in a plane), and then find the distance between A and B. Note that:

dx = XA-XB;

dy = YA-YB;

distance = sqrt(dx*dx+dy*dy);

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!