Question: Q8) Write a program that reads the radius and length of a cylinder from the user and displays the volume using the formula: volume =rr

Q8) Write a program that reads the radius and length of a cylinder from the user and displays the volume using the formula: volume =rr length. Follow the guidelines: - Write a class Cylinder which has two methods computeVolume and main. - The volume should be computed in a method called computeVolume which takes radius and length as arguments and returns volume. - User input should be read from the main method. - The method computeVolume should be invoked from the main method. - The radius, length, and volume should be of type double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
