Project 9: Distance Between Two Points
Two friends (Alana and Britney) plan to meet at a meeting place between their houses. Alana's house is at coordinate (-2, -2). Britney's house is at coordinate (3, 4).
The total distance that needs to be walked by the friends (the length of the segment below) is 7.81 units.
Project 9: Assume four variables (x1, y1, x2, y2) have been initialized. These variables refer to the coordinates of two points.
Task: initialize a variable called 'distance' that represents the distance between the two points.
Hint: Look at the picture above and think about the Pythagorean Theorem.
**If your code works for 5 test cases, you can enter your e-mail address
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0