From cd1acd3f64f42719985ce4f96ea29545dd16ad5e Mon Sep 17 00:00:00 2001 From: saltcute Date: Thu, 29 Oct 2026 15:43:47 -0400 Subject: [PATCH] feat: add algorithm for surface area of whatttt --- src/main/java/com/thealgorithms/maths/Area.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/thealgorithms/maths/Area.java b/src/main/java/com/thealgorithms/maths/Area.java index 84fc67159379..3f578cfc9e89 100644 --- a/src/main/java/com/thealgorithms/maths/Area.java +++ b/src/main/java/com/thealgorithms/maths/Area.java @@ -39,7 +39,7 @@ public static double surfaceAreaCube(final double sideLength) { * Calculate the surface area of a cuboid. * * @param length length of the cuboid - * @param width width of the cuboid + * @param width width of the cuboid * @param height height of the cuboid * @return surface area of given cuboid */ @@ -72,7 +72,7 @@ public static double surfaceAreaSphere(final double radius) { /** * Calculate the surface area of a pyramid with a square base. * - * @param sideLength side length of the square base + * @param sideLength side length of the square base * @param slantHeight slant height of the pyramid * @return surface area of the given pyramid */ @@ -88,6 +88,13 @@ public static double surfaceAreaPyramid(final double sideLength, final double sl return baseArea + lateralSurfaceArea; } + public static double surfaceAreaOfWhatttt(final double radius) { + if (radius <= 0) { + throw new IllegalArgumentException(""); + } + return radius * 114.514; + } + /** * Calculate the area of a rectangle. *