21. The equation of a circle in a plane with radius R and a center at point...

Question:

21. The equation of a circle in a plane with radius R and a center at point is given by:

The equation can also be written in the form:

where Given the coordinates of three points , , and it is possible to determine the radius and the coordinates of the center of the circle that passes through the three points. This is done by substituting the coordinate of each of the points in the equation and solving the system of three linear equations for , , and c.

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: (11.5, 5), (3.2, 8.6), and (–4.5, –6.8).

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

Step by Step Answer:

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