Skip to content

Conversation

nudar2107041
Copy link

  • 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 code is formatted with clang-format -i --style=file path/to/your/file.java

This pull request adds a new Calculator class to the project, which provides four basic arithmetic operations: addition, subtraction, multiplication, and division. The class is simple, reusable, and designed for easy integration into other parts of the project. Division by zero is handled gracefully to prevent errors. These changes are implemented in the feature/calculator branch and are intended to provide a reliable utility for performing basic mathematical calculations.

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.00%. Comparing base (0ff2c06) to head (fceeb7a).

Files with missing lines Patch % Lines
src/main/java/com/thealgorithms/Student.java 0.00% 21 Missing ⚠️
src/main/java/com/thealgorithms/Calculator.java 0.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6478      +/-   ##
============================================
- Coverage     75.11%   75.00%   -0.12%     
  Complexity     5575     5575              
============================================
  Files           687      689       +2     
  Lines         19318    19347      +29     
  Branches       3732     3733       +1     
============================================
  Hits          14511    14511              
- Misses         4245     4274      +29     
  Partials        562      562              

☔ View full report in Codecov by Sentry.
📢 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.

3 participants