Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b. [25] Your goal is to write functions that act on a dictionary containing the names of students as keys, and their exam score

 

b. [25] Your goal is to write functions that act on a dictionary containing the names of students as keys, and their exam score as the values. An example dictionary is as follows: {'Kathy': 68, 'Mira': 94, 'Brian': 44, 'Fred': 90} i) A function Make Average () that takes such a dictionary as a parameter and returns the average score in the class. (You are NOT allowed to use any built-in functions that compute the average or sum of values) ii) A function FindStars () that takes such a dictionary as a parameter and returns a list containing students that scored 90 or higher iii) A function GradeBook () that takes such a dictionary as a parameter and returns another dictionary whose keys are the names of the students and the values are "EXCELLENT", "PASS", or "FAIL" determined as follows: FAIL if the exam score = 50 but = 90

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Required code for the python program is given below with explanatory comments Text format of code fo... 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

Starting Out With Python Global Edition

Authors: Tony Gaddis

4th Edition

1292225750, 9781292225753

More Books

Students also viewed these Programming questions

Question

3. What makes the blind spot of the retina blindpg105

Answered: 1 week ago