Example: 3 courses with grades 4.0 / 3.7 / 3.3 and credits 3 / 3 / 2.
Calculate average and weighted GPA.
Mga Input
Output: Average GPA and weighted GPA.
Tip: If credits are entered, count should match grade count.