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,

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).

(xf +y}) - (x + y}) (x1 -x2) V1 -y2) C, (x3 + y})- (x +y}) (x-x3) U2-ys S 2.

Step by Step Solution

3.45 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc x1inputPlease enter the coordinates of poi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (636).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!