1-Write each program according to the problem statement.2-Include the source code and output file according to the sample data given in the problem. 1. Consider the function given below. float...

1-Write each program according to the problem statement.2-Include the source code and output file according to the sample data given in the problem.

1. Consider the function given below. float volume_of_sphere (float radius) { float volum; const float pi = 3.14159; volum = (4.0/3.0)*pi*radius*radius*radius; return (volum); } Write a program that uses the function volume_of_sphere (float radius) to calculate the difference in volume between two spheres. The first sphere has a radius of 5.5 and the second sphere has a radius of 3.3. 2. Write a program that uses a loop to print a Celsius / Fahrenheit conversion table such as the following: Celsius Fahrenheit 0 32 10 50 20 68 … … 100 212 See the conversion table at the end of problem 4. You should use a void function or a regular function.






May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here