Skip to content

Conversation

Adi-Sin101
Copy link

This pull request introduces three new core classes to the src/Features package: Student, Grade, and Calculator. These classes provide foundational functionality for handling student information, grade calculations, and basic arithmetic operations. The main changes are grouped by their purpose below.

Student data management:

  • Added the Student class with fields for student ID, name, email, department, and GPA, including constructors, getters/setters, builder-style methods, and proper equals, hashCode, and toString implementations.

Grade calculation utilities:

  • Added the Grade class, which provides methods to convert numeric scores to letter grades, compute GPA points, calculate score averages, and determine the average letter grade for an array of scores.

Calculator functionality:

  • Added the Calculator class with basic arithmetic methods (add, subtract, multiply, divide), including logging and error handling for division by zero.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.11%. Comparing base (0ff2c06) to head (3958286).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6492   +/-   ##
=========================================
  Coverage     75.11%   75.11%           
  Complexity     5575     5575           
=========================================
  Files           687      687           
  Lines         19318    19318           
  Branches       3732     3732           
=========================================
  Hits          14511    14511           
  Misses         4245     4245           
  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.

@DenizAltunkapan
Copy link
Collaborator

A calculator ist not considered as an algorithm. Also, there already exists some kind of calculator:
https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/maths/MathBuilder.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.

3 participants