Answered step by step
Verified Expert Solution
Link Copied!

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

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

What is meant by "eligibility" in a holiday clause?

Answered: 1 week ago