Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please just follow this instruction all the way. Don\'t use any advanced program

ID: 3549436 • Letter: P

Question

                            Please just follow this instruction all the way. Don't use any advanced programming techniques because it is an intro programming class. Thank                             you!!
                        

                

                    Also- PLEASE PLEASE include comments as to why you did a particular thing.                 

                

                    
                

                

                    
                

                                     The 2nd class must be the driver class with the main method.

Explanation / Answer

// GeometryCalculator.java


public class GeometryCalculator

{

// calculate the circle area

public double calcCircleArea(double radius)

{

return Math.PI * radius * radius;

}


// Calculate the sphere volume

public double calcSphereVolume(double radius)

{

return (4/3.0) * Math.PI * Math.pow(radius, 3);

}


// Calculate the rectangle area

public double calcRectangleArea(double height, double width)

{

return height * width;

}

// Calculate the cube volume

public double calcCubeVolume(double side)

{

return Math.pow(side, 3);

}

}