Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can some one help me implement these getters method. Thank you constructor: this.professor=professor; this.course=course; Map grades = new HashMap (); ------------------------------------------------------------- public Professor getProfessor() {
Can some one help me implement these getters method. Thank you
constructor:
this.professor=professor; this.course=course; Map
-------------------------------------------------------------
public Professor getProfessor() { } public Course getCourse() { } public Map getGrades() { } public void updateGrade (String grade, int numStudents) { } public float getAverage () { }
public int getNumGrade (String grade) { } public int getNumStudents() { }
@Override public int compareTo(CourseGrade o) { }
. Professor getProfessor() that returns the CourseGrade's professor . Course getCourse) that returns the CourseGrade's course . MapStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started