CylinderVolume

Write a program that calculates the volume of a cylinder. Your program should ask the user to enter the radius and the height of the cylinder. Your program will use the formula π x r2 x h where π = 3.14159, r = the radius of the cylinder and h = the height of the cylinder. Your program should include an input function, a processing function and an output function in addition to your main function. Do not forget to include the unit of measurement you are using in the output function. Format the response to the hundredth position. Provide meaningful comments in your code to let other coders know what your intentions are for each function.

×
New Download