Question: ` ` ` from Gradebook import Gradebook class CourseGradebook ( Gradebook ) : def _ _ init _ _ ( self ) : self.grades =
from Gradebook import Gradebook
class CourseGradebookGradebook:
def initself:
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 setscore
def getassignmentscoresself assignmentname:
result
# Type your code here. remove placeholder line below
return result
def getscoreself assignmentname, studentID:
# Type your code here. remove placeholder line below
return None
def getsortedassignmentnamesself:
result
# Type your code here. remove placeholder line below
return result
# getsortedstudentids returns a list with all distinct student ID
# sorted in ascending order.
def getsortedstudentIDsself:
result
# Type your code here. remove placeholder line below
return result
# getstudentscores 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 getstudentscoresself studentID:
result
# Type your code here. remove placeholder line below
return result
def setscoreself assignmentname, studentID, score:
# Type your code here.
pass
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
