Question: Python Coding Problem # next the function to_gradepoint_credit(course) # which calculates the total weight grade points you earned in one course. Say A- with 3

Python Coding Problem

# next the function to_gradepoint_credit(course)

# which calculates the total weight grade points you earned in one course. Say A- with 3 credits, that's 11.1 total grade_point_credit

course = { "class":"IntroDS", "id":"DATS 6101", "semester":"spring", "year":2018, "grade":'B-', "credits":3 }

def to_gradepoint_credit(course):

# write an appropriate and helpful docstring

# ?????? fill in your codes here

# grade_point_credit = ?????

# eventually, if you need to print out the value to 2 decimal, you can

# try something like this for floating point values %f

# print(" %.2f " % grade_point_credit)

return grade_point_credit

# Try:

print(" %.2f " % to_gradepoint_credit(course) )

# What is the input (function argument) data type for to_gradepoint_credit?

# What is the output (function return) data type for to_gradepoint_credit(course) ?

https://www.chegg.com/homework-help/questions-and-answers/python-coding-problem-next-function-togradepoint-grade-convert-letter-grade-grade-point-40-q44274932?trackid=jfa0Yz4fPython Coding Problem # next the function to_gradepoint_credit(course) # which calculates the

total weight grade points you earned in one course. Say A- with

########################### Q2 ############################### # next the function to_gradepoint(grade) # which convert a letter grade to a grade point. A is 4.0, A- is 3.7, etc grade = 'C-' def_to_gradepoint(grade): # write an appropriate and helpful docstring # ?????? fill in your codes here, be sure you have all A, A-, ... thru D, and F grades completed. # gradepoint = ??? return gradepoint # Try: print(to_gradepoint (grade)); # What is the input (function argument) data type for find_grade? # What is the output (function return) data type for find_grade (grade) ? # ########### Q3 ############################### # next the function to_gradepoint_credit(course) # which calculates the total weight grade points you earned in one course. Say A- with 3 credits, that's 11.1 total grade_point_credit course = { "class":"Introds", "id":"DATS 6101", "semester":"spring", "year":2018, "grade" : 'B-", "credits":3} def to_gradepoint_credit(course): # write an appropriate and helpful docstring # ?????? fill in your codes here # grade_point_credit = ????? # eventually, if you need to print out the value to 2 decimal, you can # try something like this for floating point values %f # print(" %.2f " % grade_point_credit) return grade_point_credit # Try: print(" %.2f " % to_gradepoint_credit(course) ) # What is the input (function argument) data type for to_gradepoint_credit? # What is the output (function return) data type for to_gradepoint_credit(course)

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 Databases Questions!