drubio102004
drubio102004
06.05.2020 • 
Engineering

Hide Assignment Information
Instructions
By submitting your work for me to grade you are verifying that you have the understanding that your work may be processed through a "TurnItIn" type plagiarism software program. You are verifying that you are submitting your own work. You are verifying that you may use your own formula sheet or your own C code research but have not consulted with another person.

Should I feel that any of the above statements are violated, you will receive a zero on this test with no questions asked.

Write a C Program to work with a right circular cone. Your program must ...

ask the user for the slant height (l), height (h) and radius (r)
call one user defined function to calculate the curved surface area (CSA) and the total surface area (TSA)
pass r and l to the user defined function by value
pass CSA and TSA to the user defined function by reference
print the CSA and TSA calculations from int main void
possible udf prototype: void area (double r, double l, double *csa, double *tsa);

call one user defined function to calculate the volume
pass r and h to the user defined function by value
return volume to int main void for printing
possible udf prototype: double volume (double r, double h);

loop until the user wants to quit

Solved
Show answers

Ask an AI advisor a question