Question: ` ` ` from Gradebook import Gradebook class CourseGradebook ( Gradebook ) : def _ _ init _ _ ( self ) : self.grades =

```
from Gradebook import Gradebook
class CourseGradebook(Gradebook):
def __init__(self):
self.grades ={}
# Type any code needed here
# Return a dict that maps students to scores
# An entry exists for a student only if one had been assigned by set_score
def get_assignment_scores(self, assignment_name):
result ={}
# Type your code here. (remove placeholder line below)
return result
def get_score(self, assignment_name, studentID):
# Type your code here. (remove placeholder line below)
return None
def get_sorted_assignment_names(self):
result =[]
# Type your code here. (remove placeholder line below)
return result
# get_sorted_student_ids() returns a list with all distinct student ID,
# sorted in ascending order.
def get_sorted_student_IDs(self):
result =[]
# Type your code here. (remove placeholder line below)
return result
# get_student_scores() gets all scores that exist in the gradebook for the
# student whose ID matches the method argument, and returns a dict that maps
# each assignment name to the student's score for that assignment.
def get_student_scores(self, studentID):
result ={}
# Type your code here. (remove placeholder line below)
return result
def set_score(self, assignment_name, studentID, score):
# Type your code here.
pass
```
` ` ` from Gradebook import Gradebook class

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