Optional Project 13: Endpoints of Diameter
A diameter of the circle above has endpoints (6, 0) and (-2, 6).
The center of the circle is (2, 3)
The radius of the circle is 5
The equation of the circle is shown below:
Optional Project 13: Variables 'x1', 'y1', 'x2', 'y2' have been initialized.
x1 represents the x-coordinate of a diameter endpoint (6 in the example above)
y1 represents the y-coordinate of a diameter endpoint (0 in the example above)
x2 represents the other x-coordinate of a diameter endpoint (-2 in the example above)
y2 represents the other y-coordinate of a diameter endpoint (6 in the example above)
Task: Appropriately initialize the values of 'x', 'y', and 'r'.
x and y represent the coordinates of the center of the circle and r represents the radius of the circle
**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