Write a program calledCylinder.javathat calculates the volume of a cylinder. Your program should have a a static function namedcomputeCylinderVolume .This function should accept both radius and height as doubles and should return the computed volume as a double.
The formula for the volume of a cylinder is given by:
V= π*r2*hPrompt the user to input two doubles, one for a cylinders height and one for its radius. Then display the result.
(Do not print to console incomputeCylinderVolume)
The output is pictured below. The code must have the static function named computeCylinderVolume in it. Thanks
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here