python
In order to improve your CGPA calculation you wil implement Dalhousie's gran hent rule to the work that you did in Problem 2 a course is repeated the initial attempt is not included in the CGPA For example, if you get a B in a course that you had previously failed, only the B is included in your CGPA For the sake of this exercise, the GPA for the previous semester is not affected [ Input (Same as Problem 21 Processing 1 Convert each letter grade to the appropriate grade point value Disregard any neutral grade letters (eg. W or ILL grades) 2. Calculate the GPA and CGPA at the end of each semester and output somester information If any course is repeated, make sure to disregard/overwrite the first attempt when calculating the CGPA as described above) Sample input Sample output 3 SEMESTERS 6 CLASSES Transfer Credits ENGI 1123.B MATH 1000,F Summer 2018 SEMESTER: Transfer Credits GPA 15 CGPA: 30 SEMESTER: Summer 2018 GPA 2.0 CGPA: 35 SEMESTER: Fall 2018 GPA 3.5 CGPA: 35 CSC OF MATH 1000A Fall 2018 MATH 1010.B CSCI 10.A 2 SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA 175 CGPA: 30 SEMESTER: Fall 2018 GPA 268 CGPA: 2.77 CSCI 1107, ILL CSCI 1120F CSC 1110.D CSCI 1800.C+ MATH 1000A Fall 2018 MATH 1010.- CSCI 1110.C CSCI 1120.B CSC 1170,C- CSCI 1108A PSYC 1201,W Z SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA: 175 CGPA: 3.0 SEMESTER: Fall 2018 GPA: 268 CGPA: 2.77 CSCI 1107.ILL CSCI 1120,F CSC 110D CSCI 1800,C+ MATH 1000A Fal 2018 MATH 1010B CSC MOC CSC 1120.B CSCI 1170.C CSCI 1108A PSYC 12010 2 SEMESTERS 13 CLASSES Fall 2018 SEMESTER: Fall 2018 GPA 206 CGPA: 31 SEMESTER: Winter 2018 GPA 3.27 CGPA 321 CSC 1107ILL CSC 1120F CSC MOD CSC 1800.C MATH 1000A MATH ZUZB+ Winter 2018 MATH 1010 A- CSCI 110,B+ CSCI 1120.C+ CSCI 1801A. CSCI 2110W CSC 1170.C CSCI 1108A- In order to improve your CGPA calculation you wil implement Dalhousie's gran hent rule to the work that you did in Problem 2 a course is repeated the initial attempt is not included in the CGPA For example, if you get a B in a course that you had previously failed, only the B is included in your CGPA For the sake of this exercise, the GPA for the previous semester is not affected [ Input (Same as Problem 21 Processing 1 Convert each letter grade to the appropriate grade point value Disregard any neutral grade letters (eg. W or ILL grades) 2. Calculate the GPA and CGPA at the end of each semester and output somester information If any course is repeated, make sure to disregard/overwrite the first attempt when calculating the CGPA as described above) Sample input Sample output 3 SEMESTERS 6 CLASSES Transfer Credits ENGI 1123.B MATH 1000,F Summer 2018 SEMESTER: Transfer Credits GPA 15 CGPA: 30 SEMESTER: Summer 2018 GPA 2.0 CGPA: 35 SEMESTER: Fall 2018 GPA 3.5 CGPA: 35 CSC OF MATH 1000A Fall 2018 MATH 1010.B CSCI 10.A 2 SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA 175 CGPA: 30 SEMESTER: Fall 2018 GPA 268 CGPA: 2.77 CSCI 1107, ILL CSCI 1120F CSC 1110.D CSCI 1800.C+ MATH 1000A Fall 2018 MATH 1010.- CSCI 1110.C CSCI 1120.B CSC 1170,C- CSCI 1108A PSYC 1201,W Z SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA: 175 CGPA: 3.0 SEMESTER: Fall 2018 GPA: 268 CGPA: 2.77 CSCI 1107.ILL CSCI 1120,F CSC 110D CSCI 1800,C+ MATH 1000A Fal 2018 MATH 1010B CSC MOC CSC 1120.B CSCI 1170.C CSCI 1108A PSYC 12010 2 SEMESTERS 13 CLASSES Fall 2018 SEMESTER: Fall 2018 GPA 206 CGPA: 31 SEMESTER: Winter 2018 GPA 3.27 CGPA 321 CSC 1107ILL CSC 1120F CSC MOD CSC 1800.C MATH 1000A MATH ZUZB+ Winter 2018 MATH 1010 A- CSCI 110,B+ CSCI 1120.C+ CSCI 1801A. CSCI 2110W CSC 1170.C CSCI 1108A