The following formula gives the distance between two points (x1, y1) and (x2, y2) in the Cartesian plane: Given the center and a point on a circle, you can use this formula to find the radius of the circle. 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 procedures:
a. distance: This function takes four numbers as its parameters that represent two points in the plane and returns the distance between them.
b. 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.
c. circumference: This function takes as tis parameter a number that represents the radius of the circle and returns the circle’s circumference.
d. area: Represents the radius of the circle and returns the circle’s area
1
Expert's answer
2013-03-13T06:32:44-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment