subject

The following formula gives the distance between two points, (x₁,y₁) and (x₂,y₂) in the Cartesian plane: \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} (x 2 −x 1 ) 2 +(y 2 −y 1 ) 2 Given the center and a point on the circle, you can use this formula to find the radius of the circle. Instructions Write a program that prompts the user to enter the center and a point on the circle. The program should then output the circle’s radius, diameter, circumference, and area. Your program must have at least the following functions: distance: This function takes as its parameters four numbers that represent two points in the plane and returns the distance between them. radius: This function takes as its parameters four numbers that represent the center and a point on the circle, calls the function distance to find the radius of the circle, and returns the circle’s radius. circumference: This function takes as its parameter a number that represents the radius of the circle and returns the circle’s circumference. (If r is the radius, the circumference is 2πr.) area: This function takes as its parameter a number that represents the radius of the circle and returns the circle’s area. (If r is the radius, the area is πr².) Assume that π = 3.1416.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
You know the right answer?
The following formula gives the distance between two points, (x₁,y₁) and (x₂,y₂) in the Cartesian pl...
Questions
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Social Studies, 11.09.2020 08:01
question
German, 11.09.2020 08:01
question
Physics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Social Studies, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Biology, 11.09.2020 08:01
question
Biology, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Chemistry, 11.09.2020 08:01
question
Mathematics, 11.09.2020 08:01
question
Social Studies, 11.09.2020 08:01
Questions on the website: 13722363