write a python code 2- Suppose you have the following dictionary: John = { "name":"john Adams", "assignment" : [90, 85, 80, 90, 100,60], "Quizzes" : [5, 4.5, 3.75, 4.25], "Midterm" : [18], " Final" : [23] } Write the following user defined methods and call them to print out the score and the grade of John. a- calculate_score that calculates and returns the score of John based on the formula : score = 0.08*Assignments (summation of the highest five assignments after dropping the lowest one) +Quizzes (summation of highest three quizzes after dropping the lowest one) + Midterm + Final b- calculate_grade that determines the grade of john based on his score. Use the same table available in the syllabus to determine the grade based on the score. Grade Low High A 93.00 100.00 A- 90.00 92.99 B+ 87.00 89.99 B 83.00 86.99 B- 80.00 82.99 C+ 77.00 79.99 C 73.00 76.99 C- 70.00 72.99 D+ 67.00 69.99 D 60.00 66.99 F 0.00 59.99
write a python code
2- Suppose you have the following dictionary:
John = { "name":"john Adams",
"assignment" : [90, 85, 80, 90, 100,60],
"Quizzes" : [5, 4.5, 3.75, 4.25],
"Midterm" : [18], "
Final" : [23] }
Write the following user defined methods and call them to print out the score and the grade of John.
a- calculate_score that calculates and returns the score of John based on the formula : score = 0.08*Assignments (summation of the highest five assignments after dropping the lowest one) +Quizzes (summation of highest three quizzes after dropping the lowest one) + Midterm + Final
b- calculate_grade that determines the grade of john based on his score. Use the same table available in the syllabus to determine the grade based on the score.
Grade Low High
A 93.00 100.00
A- 90.00 92.99
B+ 87.00 89.99
B 83.00 86.99
B- 80.00 82.99
C+ 77.00 79.99
C 73.00 76.99
C- 70.00 72.99
D+ 67.00 69.99
D 60.00 66.99
F 0.00 59.99
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images