Given the coordinates of three points (x1,y1), (x2,y2) , and (x3,y3) it is possible to find the
Question:
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 Answer:
Script file clear clc x1inputPlease enter the coordinates of poi...View the full answer
Related Video
The area of a circle is given by the formula: A = ?r^2 Where A is the area, ? is a mathematical constant (approximately 3.14), and r is the radius of the circle. The radius is the distance from the center of the circle to the edge. So for example, if the radius of a circle is 5 units, the area would be: A = ?(5^2) = ?(25) = 78.5 square units Here three friends went out to a restaurant and decided to have pizza for lunch. While they were waiting for their order, one of them stepped out to take a call but promised to return in two minutes. The waiter came and presented them with the menu, and they decided to order two 10-inch pepperoni pizzas. The waiter took their order and left. Just then, the third friend returned and asked what they had ordered. They explained that they had ordered two small pepperoni pizzas as they were only three of them and it would be enough for them. However, the third friend suggested that for the same price, they could get a large pizza that would be much bigger than the two small ones. He asked the waiter for a pen and paper and proceeded to calculate the area of the two small pizzas and compared it to the area of one large pizza. The friends were amazed at how the circle measurements worked and decided to change their order from two small pizzas to one large pizza.
Students also viewed these Finance questions
-
Write a program in a script file that calculates the cost of shipping a package according to the following price schedule: The program asks the user to enter the type of service (Ground, Express, or...
-
The pressure drop p in Pa for a fluid flowing in a pipe with a sudden increase in diameter is given by: Where p is the density of the fluid, v, the velocity of the flow, and d and D are defined in...
-
Write a user-defined function that plots a circle given the coordinates of the center and a point on the circle. For the function name and arguments, use circle PC (c, p). The input argument c is a...
-
Give the eccentricities of conic sections with one focus at the origin of the polar coordinate plane, along with the directrix for that focus. Find a polar equation for each conic section. e = 1/2, r...
-
Thirty GPAs from a randomly selected sample of statistics students at Oxnard College are available at this text's website. Assume that the population distribution is approximately Normal. The...
-
Figure shows the transverse velocity u versus time t of the point on a string at x = 0, as a wave passes through it. The scale on the vertical axis is set by us = 4.0m/s. The wave has form y(x, t) =...
-
Delete
-
Omega, Inc., a publicly held corporation, has assets of $100 million and annual earnings in the range of $13 to $15 million. Omega owns three aluminum plants, which are profitable, and one plastics...
-
please answer to a question, M22-7. thank you. d. Yes No M22-7 On January 2, 2017, Garr Company acquired LO 22.3 machinery at a cost of $320,000. This machin- ery was being depreciated by the...
-
Table 1 shows Apple's online orders for the last week. When shoppers place an online order, several "recommended products" (upsells) are shown as at checkout an attempt to upsell See table 2 in cell...
-
The net heat exchange by radiation from plate 1 with radius b to plate 2 with radius a that are separated by a distance c is given by: q = b2F12(T41 T42) Where T1 and T2 are the absolute...
-
A truss is a structure made of members joined at their ends. For the truss shown in the figure, the forces in the nine members are determined by solving the following system of nine equations: F2 +...
-
The following information appeared in the 2002 annual report of Lyondell Petrochemical Company, a manufacturer of petrochemicals and refined petroleum products such as gasoline, heating oil, jet...
-
In countries with high unemployment and poverty rates, the nation's people are often more concerned with the economic environment than the intricacies of its political systems. In 2010, Mohamed...
-
Analyze this approach: Consider that you could increase the productivity of your department, you have thought about certain ways to do it, but you are not sure. Your team has a lot of experience, but...
-
What is the research question or objective? What research methods did the authors use? Examples include survey, case study, interviews, opinions, qualitative, quantitative, etc. What are the...
-
Provide a critical reflection on each department outlining which services, aspects and operational factors you should further investigate to help improve customer satisfaction. Express the negative...
-
1. Many courses use group projects. What are some of the things that make positive group project experiences? 2. How can a manager motivate employees? Give some specific ideas. Include when you've...
-
Suppose a firm has the following information: Operating current assets = $2.7 million; operating current liabilities= $1.5 million; long-term bonds = $3 million; net plant and equipment = $7.8...
-
Write a function that reads a Float24_t value: Float24_t float24_read(void) A legitimate float24 value string is of the form: "mantissabexponent" where the mantissa (m) and the exponent (e) may have...
-
Feliz Ltd has an authorised capital of 1 million comprising of ordinary shares of 1 each. The shares were issued at par, payments being made as follows: Applications were received for 1.28 million...
-
Speculate as to why GASB Statement No. 34 changed the reporting requirements for internal service funds. Do you agree or disagree? Explain.
-
Compare and contrast proprietary fund reporting under GASB No.34 with GAAP financial reporting for non-governmental entities. Examine why GASB requires the direct method for cash flow statements in...
-
From your own personal experience at your current or prior place of work, give an example of a quantitative NON-FINANCIAL perspective objective that you have seen implemented OR that you would...
-
Duncan Inc. issued 500, $1,200, 8%, 25 year bonds on January 1, 2020, at 102. Interest is payable on January 1. Duncan uses straight-line amortization for bond discounts or premiums. INSTRUCTIONS:...
-
WISE-HOLLAND CORPORATION On June 15, 2013, Marianne Wise and Dory Holland came to your office for an initial meeting. The primary purpose of the meeting was to discuss Wise-Holland Corporation's tax...
-
Stock in ABC has a beta of 0.9. The market risk premium is 8%, and T-bills are currently yielding 5%. The company's most recent dividend is $1.60 per share, and dividends are expected to grow at a 6%...
Study smarter with the SolutionInn App