Question: Exercise 5 With the previous exercises we were able to calculate the semester GPA. To compute the cumulative GPA (the GPA of all semesters) we

Exercise 5 With the previous exercises we were able to calculate the semester GPA. To compute the cumulative GPA (the GPA of all semesters) we can either enter all the grades of all courses taken, or simply report the earned credits and credit points at the start of the current semester. This second solution is less tedious so we will adopt it. Ask the user to enter his previous earned credits and credit points then the grades of this semester and finally report the semester GPA as well as the cumulative GPA. Below is a sample run: Enter your current earned credit points: 36.5 Enter your current earned credits: 12 Enter the number of courses that you are taking this semester: 4 Enter the course code for course \#1: COMM1020 Enter the number of credits of COMM1020: 3 Enter the grade obtained in COMM1020: 92 Enter the course code for course \#2: INFS1201 Enter the number of credits of INFS1201: 4 Enter the grade obtained in INFS1201: 78 Enter the course code for course \#3: INFT1201 Enter the number of credits of INFT1201: 4 Enter the grade obtained in INFT1201: 96 Enter the course code for course \#4: MATH1030 Enter the number of credits of MATH1030: 3 Enter the grade obtained in MATH1030: 86 Your semester GPA is: 3.4642857142857144 Your cumulative GPA is: 3.269230769230769
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
