Question: how can I create these methods in java: Your class should provide a method to add a new rating for the professor. It should take
how can I create these methods in java:
Your class should provide a method to add a new rating for the professor.
It should take two arguments: one for overall rating and one for level of
difficulty, with values from 1 (awful) to 5 (awesome). Each time a new
rating is provided, your class should calculate the average rating for the
professor and update the appropriate variable for each.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
