Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started