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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment