@@ -72,7 +72,7 @@ public static double volumeCone(double radius, double height) {
72
72
/**
73
73
* Calculate the volume of a prism.
74
74
*
75
- * @param baseArea area of the given prism's base
75
+ * @param baseArea area of the given prism's base
76
76
* @param height of given prism
77
77
* @return volume of given prism
78
78
*/
@@ -83,27 +83,23 @@ public static double volumePrism(double baseArea, double height) {
83
83
/**
84
84
* Calculate the volume of a pyramid.
85
85
*
86
- * @param baseArea of the given pyramid's base
86
+ * @param baseArea of the given pyramid's base
87
87
* @param height of given pyramid
88
88
* @return volume of given pyramid
89
89
*/
90
90
public static double volumePyramid (double baseArea , double height ) {
91
91
return (baseArea * height ) / 3 ;
92
92
}
93
93
94
-
95
94
/**
96
95
* Calculate the volume of a pyramid.
97
96
*
98
- * @param r1 radius of top of frustum
99
- * @param r2 radius of bottom of frustum
97
+ * @param r1 radius of top of frustum
98
+ * @param r2 radius of bottom of frustum
100
99
* @param height of given frustum
101
- * @return volume of given frustum
100
+ * @return volume of given frustum
102
101
*/
103
102
public static double volumeFurstumOfCone (double r1 , double r2 , double height ) {
104
103
return ((Math .PI * height ) / 3 ) * (r1 * r1 + r2 * r2 + r1 * r2 );
105
104
}
106
-
107
-
108
-
109
105
}
0 commit comments