Question: c++ CHALLENGE ACTIVITY 2.11.3: Using math functions to calculate the distance between two points. Determine the distance between point (x1, y1) and point (x2, y2),

 c++ CHALLENGE ACTIVITY 2.11.3: Using math functions to calculate the distance

between two points. Determine the distance between point (x1, y1) and point

c++

CHALLENGE ACTIVITY 2.11.3: Using math functions to calculate the distance between two points. Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to points Distance. The calculation is: Distance (x2 x1)2 + (y2 yl)2 Ex: For points (1.0, 2.0) and (1.0, 5.0), points Distance is 3.0. 28 236599 axzay 1 test passed All tests passed 1 #include 2 #include 3 using namespace std; 4 5 int main() { 6 double X1; 7 double yi, 8 double x2; 9 double y2; double xDist; 11 double yDist; 12 double pointsDistance; 13 xDist = 0.8; 15 yDist = 0.01 16 pointsDistance = 0.0; 17 18 cin> ) X13 10 AW NHL 00 14 cin >> x1, cin >> y1, cin >> x2; cin >> y2; Your solution goes here */ cout

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!