Skip to content

Added surface area calculation for pyramid - #7679

Closed
suhaschenna wants to merge 1 commit into
TheAlgorithms:masterfrom
suhaschenna:new_branch
Closed

suhaschenna wants to merge 1 commit into
TheAlgorithms:masterfrom
suhaschenna:new_branch

Conversation

@suhaschenna

Copy link
Copy Markdown

Added a new method to calculate the surface area of a square-based pyramid. The method includes input validation to ensure positive measurements and calculates the total surface area using the base and lateral surface areas.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant