Computer Science, asked by madandev1994, 7 months ago

VOLUME OF CONE, CYLINDER AND SPHERE Write a program to find volume of a cone, cylinder and sphere by reading input from the user using functions. Note : Use 3 functions to calculate volume of cone, cylinder and sphere respectively. Find the volume of cone by using a method public static float volumeOfCone( int height, int radius ) Find the volume of cylinder by using a method public static float volumeOfCylinder( int length ) Find the volume of cone by using a method public static float volumeOfSphere( int length ) Method Name Arguments Return type volumeOfCone height and radius float volumeOfCylinder height and radius float volumeOfSphere radius float Input format: Input consists of height and radius Output format: Output displays the volume of a cone, cylinder and sphere (correct to 2 decimal). Take value of pi as 3.14 Refer sample input and output for formatting specifications. Sample input 1: Enter height and radius 3 5 Sample output 1: Volume of cone: 78.50 Volume of cylinder: 235.50 Volume of sphere: 523.33

Answers

Answered by NeeravGandhi
0

Hi.......

How are you?

Answered by aryanmohapatra2008
0

Answer:

hssssssssssssssssssssssssssssssssssssssssshshshhhhshhh

Explanation:

Similar questions