This project is a Student Grades Management System built in C++. It allows users to manage student records by storing and calculating grades for each student.
This source file contains the core logic for managing students and their grades. It includes:
- Storing student names and their respective grades.
- Calculating the average grade for each student.
- Handling operations related to the grades, such as adding new grades and calculating class averages.
This file contains the main function, which demonstrates how the calificaciones.cpp file interacts with the user. It allows for:
- Inputting student names and grades.
- Displaying the calculated averages.
- Interacting with the user to view specific student data.
To compile the project, use the following command in your terminal:
g++ -o student_grades main.cpp calificaciones.cppThis will create an executable file named student_grades.
After compiling, run the program with:
./student_gradesThe program will:
- Prompt the user to enter student names and their corresponding grades.
- Calculate and display the average grade for each student.
- Allow the user to view additional student data or class statistics.
Enter the number of students: 3
Enter the name of student 1: Alice
Enter grades for Alice: 85 90 78
Average grade for Alice: 84.33
Enter the name of student 2: Bob
Enter grades for Bob: 92 88 79
Average grade for Bob: 86.33
Enter the name of student 3: Carol
Enter grades for Carol: 76 85 80
Average grade for Carol: 80.33
- A C++ compiler (e.g.,
g++). - Input data from the user to calculate student averages.