Question: I. Create a Geometry class and complete static methods(50pts) Create a class Geometry to store the height h of a cube, radius r of

I. Create a Geometry class and complete static methods(50pts) Create a class Geometry to store the height h of a cube, radius r of a sphere, circular base radius r2 and height h2 of a cylinder. Then complete the following static methods that can be used to compute the volume and surface area of the objects. public static double cubeVolume(double h) public static double cubeSurface(double h) . public static double sphereVolume(double r) public static double sphereSurface(double r) public static double cylinderVolume(double r, double h) public static double cylinderSurface(double r, double h) Your program must meet these specifications: 1. Assign the proper data type for the object parameters. 2. Complete the static methods with formula that can correctly output the results. 3. Then in the driver class, write program that prompts the user for the values of r, h, r2 and h2, calls the six methods, and prints the results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
