Given the coordinates of three points (x1,y1), (x2,y2) , and (x3,y3) it is possible to find the

Question:

Given the coordinates of three points (x1,y1), (x2,y2) , and (x3,y3) it is possible to find the coordinates of the center of the circle (Cx, Cy) that passes through the three points by solving the following simultaneous equations:
(xf +y}) - (x + y}) (x1 -x2) V1 -y2) C, (x3 + y})- (x +y}) (x-x3) U2-ys S 2.

Write a program in a script file that calculates the coordinates of the center and the radius of a circle that passes through three given points. When executed the program asks the user to enter the coordinates of the three points. The program then calculates the center and radius and displays the results in the following format: "The coordinates of the center are (xx.x, xx.x) and the radius is xx.x. ", where xx.x stands for the calculated quantities rounded to the nearest tenth. Execute the program entering the following three points: ( 10.5, 4), (2, 8.6), and ( --4, -7).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: