Question: C programming Program: 1. Write a C program that does the following: a. The main function calls function #1, named introduction. This function prints a
Program: 1. Write a C program that does the following: a. The main function calls function #1, named introduction. This function prints a program description to the user. b. The main function gets an input of a radius from the user. The radius is of type double to allow decimal points. Assume units of cm C. The main function then calls function #2, named sphere_volume. This function has as its input a radius (in cm of type double) and outputs the volume of a sphere (in cm3 of type double) to 2 decimal places. The function calls "pow" in doing the calculation. If you have to search for the equation for the volume of a sphere, be sure to put the reference in a comment in the code. Run the following radius to test the program: radius -5.0 For the submitted screen capture, run the program with an input radius of 5.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
