This is a simple GPA Calculator built in Python that allows users to calculate their GPA based on either numeric grades (0โ100) or letter grades (A, B+, C-, etc.).
The program supports variable credit hours per course and uses a standard GPA conversion scale.
- Accepts either numeric or letter grades for each course.
- Supports custom credit hours per course.
- Automatically converts grades to GPA points using a defined scale.
- Handles invalid inputs gracefully.
- Displays the final GPA rounded to two decimal places.
| Grade | Points |
|---|---|
| A | 4.0 |
| Aโ | 3.7 |
| B+ | 3.3 |
| B | 3.0 |
| Bโ | 2.7 |
| C+ | 2.3 |
| C | 2.0 |
| Cโ | 1.7 |
| D+ | 1.3 |
| D | 1.0 |
| F | 0.0 |
- Python 3
- Functions, conditionals, and loops
- Input handling and validation