The Student Grade Calculator is a C++ program designed to calculate and analyze student grades, providing detailed statistics and grade distribution analysis.
- Read student grades from a text file (
grades.txt
):- The program reads student grades from a specified text file (
grades.txt
). Each grade should be on a new line within the file.
- The program reads student grades from a specified text file (
- Calculate various statistics:
- Average Grade: Computes the arithmetic mean of all input grades.
- Median Grade: Determines the middle value in a sorted list of grades, which separates the higher half from the lower half.
- Mode Grade: Identifies the grade that appears most frequently in the dataset.
- Analyze and categorize grades into different ranges:
- Grades are categorized into the following ranges:
- 0-59
- 60-69
- 70-79
- 80-89
- 90-100
- The program counts how many grades fall into each range and generates a distribution report.
- Grades are categorized into the following ranges:
- Generate a detailed report (
results.txt
):- After calculating statistics and analyzing grade distribution, the program generates a comprehensive report stored in
results.txt
. - The report includes:
- Average grade
- Median grade
- Mode grade
- Grade distribution across defined ranges
- After calculating statistics and analyzing grade distribution, the program generates a comprehensive report stored in
To run the Student Grade Calculator locally on your machine, follow these steps:
- Clone the repository:
git clone https://github.com/AhmedFaizanDev/Student-Grade-Calculator.git cd Student-Grade-Calculator