Question: please, help with this question in c language (10 marks] Create a library (i.e. a .h header and .c source file) that calculates surface area
(10 marks] Create a library (i.e. a .h header and .c source file) that calculates surface area of three geometric shapes: a sphere, a right (untilted) cylinder, and a right (untilted) cone. The surface area of the cylinder and cone should include the circular end-caps. The user supplies the appropriate parameter(s), such as radius for the sphere, in decimal form when calling the function. Your function returns the total surface area. All the formulas use a; use a #DEFINE statement in the source code to replace _PI_ with 4.0*ATAN(1.0). Underscores in defined names are commonly used to avoid unwanted substitutions. Make sure you name the functions and variables to enhance readability. Add comments for clarity. If you have main() or printf() in your source code you are not doing what I am asking
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
