help with java static methods?

Joeseph G

New member
Create the following static methods:
1. public static double sphereVolum(double r)
2. pubic static double spherSurface(double r)
3. public static double circleArea(double r)
4. public static double circleCircumference(double r)
5. public static double coneVolume(double r, double h)
6. public static double coneSurface(double, double h)

that compute the volume and surface area of a sphere with radius r, a cylinder with circular base with radius r and height h, and a cone with circular base with radius r and height h. Place into a class Geometry. THen write program that prompts the user for the values of r and h, calls the six methods, and prints the results.
 
Back
Top