Question: CHALLENGE ACTIVITY nate geometry. Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to pointsDistance. The calculation is: DistanceV(2-

 CHALLENGE ACTIVITY nate geometry. Determine the distance between point (x1, y1)

CHALLENGE ACTIVITY nate geometry. Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to pointsDistance. The calculation is: DistanceV(2- 1)2 (y2-yl) Ex: For points (1.0, 2.0) and (1.0, 5.0), pointsDistance is 3.0. 1 #include 3 using namespace std; 1 test passed 5 int main 6 double x1 7 double yl; 8 double x2; All tests passed double y2; 10 double xDist 11 double yDist; 12 double pointsDistance; 14 xDist0.0 15 yDist -0.0; 16 pointsDistance 0.8; 17 18 cin > x1 Run View your last submission v Feedback

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!