Question: CHALLENGE ACTIVITY 2 . 1 0 . 3 : Using math tunctions 5 6 8 8 1 4 . 4 2 6 7 4 9

CHALLENGE
ACTIVITY
2.10.3: Using math tunctions
568814.4267496.q3zqy7
Organize the code statements to find the distance between point (x1,y1) and point (x2,y2), and assign the result to pointsDistance. The calculation is:
Distance =(x2-x1)2+(y2-y1)22
Ex: If the input is:
1.0,2.0
1.0,5.0
then the output is:
3
Note: This activity includes distractors. Not all code statements on the left will be used in the final solution.
How to use this tool
Unused
pointsDistance =sqrt(xDist+yDist);
yDist =pow((x2-y2),2);
yDist =pow((y2-y1),2);
xDist=pow((x1-y1),2);
xDist=pow((x2-x1),2);
main.cpp
Load default template...
 CHALLENGE ACTIVITY 2.10.3: Using math tunctions 568814.4267496.q3zqy7 Organize the code statements

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!