Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started