Functions and Pointers. Use the following formulas in the functions below Volume
ID: 3619825 • Letter: F
Question
Functions and Pointers. Use the following formulas in the functions below Volume = pi / 4 D2L Superficial Area = pi Dl where, D and L are the diameter and length in feet, respectively. The resulting volume and superficial area will have units of ft3, and ft2, respectively. Add the value of pi using the define statement, i.e., #define pi 3.14159. Main function ( 15 pts ) : Initializes the diameter D with 2 ft and the length with 20 ft, calls function cylinder and then prints the volume and surface area. Function ( 10 pts ) : Has the length, diameter and required pointers as input and calculates the volume and surface area with the formulas above.Explanation / Answer
please rate - thanksRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.