Structures The circle has two data members, a Point representing the center of the circle and a float value representing the radius as shown below. typedef struct{ Point center; float radius; }Circle; Make a c project sorting it into main.c circle.h, circle.c and implement the following functions: a. float diameter(Circle circ); //computes the diameter of a circle. b. float area(Circle circ); //computes for area of a circle c. float circumference(Circle circ);//computes for the circumference of a circle. Also add the basic functiona: initCircle(), createCircle() and displayCircle()

icon
Related questions
Question

Structures

The circle has two data members, a Point representing the center of the circle and a float value representing the radius as shown below.

typedef struct{

Point center;

float radius;

}Circle;

Make a c project sorting it into main.c circle.h, circle.c and implement the following functions:

a. float diameter(Circle circ); //computes the diameter of a circle.

b. float area(Circle circ); //computes for area of a circle

c. float circumference(Circle circ);//computes for the circumference of a circle.

Also add the basic functiona: initCircle(), createCircle() and displayCircle()

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer