A professional C++ console-based CGPA Calculator developed as part of the CodeAlpha C++ Programming Internship.
- Accepts the number of courses
- Accepts course names
- Accepts credit hours for each course
- Supports grades: A, B+, B, C+, C, D, F
- Calculates total credit hours
- Calculates total quality points
- Calculates GPA/CGPA
- Provides performance feedback
- Validates invalid course numbers
- Validates invalid credit hours
- Validates invalid grades
- Supports lowercase grade input
| Grade | Grade Point |
|---|---|
| A | 4.0 |
| B+ | 3.5 |
| B | 3.0 |
| C+ | 2.5 |
| C | 2.0 |
| D | 1.0 |
| F | 0.0 |
GPA is calculated using:
GPA = Total Quality Points / Total Credit Hours
Where:
Quality Points = Grade Point × Credit Hours
- C++
- Object-Oriented/Structured Programming Concepts
- Standard C++ Library
g++ main.cpp -o cgpa