Question: import java.util. * ; public class CourseGradebook extends Gradebook { / / Implementing abstract methods @Override public void setScore ( String assignmentName, Integer studentID, Double
import java.util.;
public class CourseGradebook extends Gradebook
Implementing abstract methods
@Override
public void setScoreString assignmentName, Integer studentID, Double score
Your implementation
@Override
public double getScoreString assignmentName, Integer studentID
Your implementation
return Double.NaN;
@Override
public HashMap getAssignmentScoresString assignmentName
Your implementation
return new HashMap;
@Override
public ArrayList getSortedAssignmentNames
Your implementation
return new ArrayList;
@Override
public ArrayList getSortedStudentIDs
Your implementation
return new ArrayList;
@Override
public HashMap getStudentScoresInteger studentID
Your implementation
return new HashMap;
The Results as follows: Please help fix: am suck with code to pass.
testGetScoreAndSetScore
FAIL: getScoreMidterm returned NaN, but expected is
testGetAssignmentScores
Calling getAssignmentScoresHomework
FAIL: getAssignmentScoresHomework returned a map with scores, but the expected map has scores
testGetSortedAssignmentNames
FAIL: getSortedAssignmentNames
Expected: Course project, Final exam, Homework Homework Homework Homework Midterm
Actual:
testGetSortedStudentIDs
FAIL: getSortedStudentIDs
Expected:
Actual:
testGetStudentScores
Calling getStudentScores
FAIL: getStudentScores returned a map with scores, but the expected map has scores
Summary:
testGetScoreAndSetScore: FAIL
testGetAssignmentScores: FAIL
testGetSortedAssignmentNames: FAIL
testGetSortedStudentIDs: FAIL
testGetStudentScores: FAIL
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
