Question: Use this exact dictionary (Do NOT add or delete anything from this dictionary): gpa_dict = {'A':4.0, 'A-':3.66, 'B+':3.33, 'B':3.0, 'B-':2.66, 'C+':2.33, 'C':2.0, 'C-':1.66, 'D+':1.33, 'D':1.00,

Use this exact dictionary (Do NOT add or delete anything from this dictionary): gpa_dict = {'A':4.0, 'A-':3.66, 'B+':3.33, 'B':3.0, 'B-':2.66, 'C+':2.33, 'C':2.0, 'C-':1.66, 'D+':1.33, 'D':1.00, 'D-':.66, 'F':0.00} Build a program, gpacalc.py, that takes four letter grade arguments and prints out the corresponding GPA, to two decimals. The program should work both in arguments that are upper-case and lower-case. The program should print in the form: "My GPA is x" Where x = GPA calculation Use sys.argv to test the function no input() or additional libraries should be imported

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!