In The Present Homework You Are To Design A Program In C Using The Switch Comman
In the present homework, you are to design a program in C using the “switch” command together with a runmode operator and four prototype functions (called volSphere, areaSphere, volCube, and areaCube) which will compute any one of the following four quantities:
1. the volume vsphere = 4πa3/3 of the sphere through the function volSphere.
2. the surface area asphere = 4πa2 of the sphere through the function areaSphere.
3. the volume vcube = 8a3 of the cube through the function volCube.
4. the surface area acube = 24a2 of the cube through the function areaCube.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
