This project is developed as part of the CodeAlpha C++ Programming Internship.
The CGPA Calculator is a console-based C++ application that calculates the CGPA of a student based on the number of subjects, credit hours, and letter grades.
- Takes input for number of subjects
- Accepts subject credits
- Accepts letter grades (A, B, C, D, E, F)
- Converts grades into grade points
- Calculates and displays final CGPA
| Grade | Grade Point |
|---|---|
| A | 10 |
| B | 9 |
| C | 8 |
| D | 7 |
| E | 6 |
| F | 0 |
- C++
- Standard Template Library (STL)
- Clone the repository or download the source code
- Open terminal in the project directory
- Compile the code using:
- Run the program:
Enter the number of subjects: 3
Enter credit for subject 1: 4
Enter grade(A/B/C/D/E/F) for subject 1: A
Enter credit for subject 2: 3
Enter grade(A/B/C/D/E/F) for subject 2: B
Enter credit for subject 3: 3
Enter grade(A/B/C/D/E/F) for subject 3: C
Your CGPA is: 9.1