Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need help with my Python assignment. Please, if possible provide me with indentation or screenshot of what the code looks like. Also please

Hi, I need help with my Python assignment. Please, if possible provide me with indentation or screenshot of what the code looks like. Also please refer to this dictionary as a Letter grades to GPA value. grades = {"A+": 4.30, "A": 4.00, "A-": 3.70, "B+": 3.30, "B": 3.00, "B-": 2.70, "C+": 2.30, "C": 2.00, "C-": 1.70, "D": 1.00, "F": 0.00} also note that "W" and "ILL" are Neutral value and therefore affect GPA or CGPA.

I've provided the input and output format labelled as "as mentioned in problem 2" below:

Input

  • First, you will receive the number of semesters included in the student transcript, followed by the word SEMESTERS
  • Second, you will receive the total number of classes that the student has taken so far, followed by the word CLASSES
  • For each semester of data provided, you will receive the following information:
    • Semester name
    • Number of courses taken that semester
    • Multiple lines containing information for each course taken that semester in the following format:
      • course code followed by grade letter obtained, each separated by a comma

Output format

SEMESTER: {semester name}

GPA: {calculated GPA rounded to 2 decimal places}

CGPA: {calculated CGPA to that point rounded to 2 decimal places}

:

SEMESTER: {semester name}

GPA: {calculated GPA rounded to 2 decimal places}

CGPA: {calculated CGPA to that point rounded to 2 decimal places}

image text in transcribedimage text in transcribedimage text in transcribed

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) 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: 20 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: 268 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: 206 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_2

Step: 3

blur-text-image_3

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Diagnose situations to analyze the strength of motivation present.

Answered: 1 week ago