Question: Can i have help in Python. Letter Grade Quality Points 4.33 4.00 3.67 3.33 3.00 2.67 2.33 2.00 1.67 1.00 0.00 B+ In order to
Can i have help in Python.
Letter Grade Quality Points 4.33 4.00 3.67 3.33 3.00 2.67 2.33 2.00 1.67 1.00 0.00 B+ In order to calculate a weighted GPA, use the following steps: 1. For each course: a. Calculate the course's weighted grade points by multiplying the quality points for the earned grade by that course's value in credit hours 2. Calculate the total grade points by summing all of the weighted grade points calculated in step1 3. Calculate the total weighted credits by summing the credit hour values for all courses 4. Divide the total grade points by the total weighted credits Write a function called weighted_gpa_calculator (transcript, qp_table) that accepts two parameters. The first parameter is a dictionary that holds the cadet's transcript, where the key is the course number and the value is a two element tuple containing the letter grade received in that course as a string and the credit hour value of that course as a float. The second parameter is a dictionary that holds the quality points table shown above where the key is the letter grade and the value is the quality points for the letter grade as a float. Using these dictionaries, calculate and return the cadet's weighted GPA as a float that has been rounded to two decimal places. Sample execution may look like this: def weighted gpa calculator (transcript, qp table): >>> tran3cript >>> gp table 'MA100': ('C', 3.5), 'RS 101' :('B',0.5) } 'A-' :3.67, { 'CY300' :('A+ ', 3.0), {'A+' :4.33, 'A' :4.00, 'B+' :3.33, 'B' :3.00, B-:2.67, 'C+':2.33, 'C':2.00, 'C-':1.67, 'D':1.00, F' :0.00) >>>weighted gpa calculator (transcript, qp table) 3.07 totalgradepoints 0.0 totalweightedcredits 0.0 - - - - for course,grade in transcript: total grade point gp table [cour3e[0] * course [1]] totalweightedcredits cour3e[1] - - return (total grade points//total weighted credits)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
