Skip to content

Added surface area calculation for pyramid - #7703

Closed
yrazvi32 wants to merge 1 commit into
TheAlgorithms:masterfrom
yrazvi32:lab6-code-review
Closed

yrazvi32 wants to merge 1 commit into
TheAlgorithms:masterfrom
yrazvi32:lab6-code-review

Conversation

@yrazvi32

Copy link
Copy Markdown

Description
Added a new surfaceAreaPyramid() method to Area.java to calculate the total surface area of a square-based pyramid.

Changes Made

  • Added input validation for the side length and slant height.
  • Implemented the surface area formula: A = s² + 2sl.
  • Added JavaDoc comments explaining the method and its parameters.

Purpose
This pull request demonstrates the GitHub code review process for ENGG 4450 Lab 6.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.22%. Comparing base (410f087) to head (9f35bb7).

Files with missing lines Patch % Lines
src/main/java/com/thealgorithms/maths/Area.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7703   +/-   ##
=========================================
  Coverage     82.22%   82.22%           
- Complexity     8402     8403    +1     
=========================================
  Files           843      843           
  Lines         26143    26143           
  Branches       5101     5101           
=========================================
  Hits          21495    21495           
  Misses         3854     3854           
  Partials        794      794           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants