Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

```````` Use Python to answer the question please In order to improve your CGPA calculation, you will implement Dalhousie's grade replacement rule to the work

image text in transcribedimage text in transcribed````````

Use Python to answer the question please

In order to improve your CGPA calculation, you will implement Dalhousie's grade replacement rule to the work that you did in Problem 2. If 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.(1) Input (Same as Problem 2] Processing 1. Convert each letter grade to the appropriate grade point value Disregard any neutral grade letters (e.g. W or ILL grades) 2. Calculate the GPA and CGPA at the end of each semester and output semester information If any course is repeated, make sure to disregard/overwrite the first attempt when calculating the CGPA (as described above) Output format (Same as Problem 2] Sample input Sample output 3 SEMESTERS 6 CLASSES Transfer Credits ENGI 1123,B MATH 1000,F Summer 2018 SEMESTER: Transfer Credits GPA: 1.5 CGPA: 3.0 SEMESTER: Summer 2018 GPA: 2.0 CGPA: 3.5 SEMESTER: Fall 2018 GPA: 3.5 CGPA: 3.5 CSCI 1110,F MATH 1000,A Fall 2018 MATH 1010,B CSCI 1110.A 2 SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA: 1.75 CGPA: 3.0 SEMESTER: Fall 2018 GPA: 2.68 CGPA: 2.77 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000.A- Fall 2018 MATH 1010,B- CSCI 1110.C CSCI 1120,B CSCI 1170.C CSCI 1108,A PSYC 1201,W 2 SEMESTERS 13 CLASSES Fall 2018 SEMESTER: Fall 2018 GPA: 2.06 CGPA: 3.1 SEMESTER: Winter 2018 GPA: 3.27 CGPA: 3.21 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000.A- MATH 2112,B+ Winter 2018 MATH 1010, A- CSCI 1110,B+ CSCI 1120.C+ CSCI 1801,A+ CSCI 2110, W CSCI 1170.C CSCI 1108,A+ [1] In reality, the GPA is updated such that a replaced grade is no longer included for the semester affected, as if it had never happened. In order to improve your CGPA calculation, you will implement Dalhousie's grade replacement rule to the work that you did in Problem 2. If 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.(1) Input (Same as Problem 2] Processing 1. Convert each letter grade to the appropriate grade point value Disregard any neutral grade letters (e.g. W or ILL grades) 2. Calculate the GPA and CGPA at the end of each semester and output semester information If any course is repeated, make sure to disregard/overwrite the first attempt when calculating the CGPA (as described above) Output format (Same as Problem 2] Sample input Sample output 3 SEMESTERS 6 CLASSES Transfer Credits ENGI 1123,B MATH 1000,F Summer 2018 SEMESTER: Transfer Credits GPA: 1.5 CGPA: 3.0 SEMESTER: Summer 2018 GPA: 2.0 CGPA: 3.5 SEMESTER: Fall 2018 GPA: 3.5 CGPA: 3.5 CSCI 1110,F MATH 1000,A Fall 2018 MATH 1010,B CSCI 1110.A 2 SEMESTERS 11 CLASSES Summer 2018 SEMESTER: Summer 2018 GPA: 1.75 CGPA: 3.0 SEMESTER: Fall 2018 GPA: 2.68 CGPA: 2.77 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000.A- Fall 2018 MATH 1010,B- CSCI 1110.C CSCI 1120,B CSCI 1170.C CSCI 1108,A PSYC 1201,W 2 SEMESTERS 13 CLASSES Fall 2018 SEMESTER: Fall 2018 GPA: 2.06 CGPA: 3.1 SEMESTER: Winter 2018 GPA: 3.27 CGPA: 3.21 CSCI 1107,ILL CSCI 1120,F CSCI 1110,D CSCI 1800,C+ MATH 1000.A- MATH 2112,B+ Winter 2018 MATH 1010, A- CSCI 1110,B+ CSCI 1120.C+ CSCI 1801,A+ CSCI 2110, W CSCI 1170.C CSCI 1108,A+ [1] In reality, the GPA is updated such that a replaced grade is no longer included for the semester affected, as if it had never happened

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions