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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY