Question: Write a Java program that creates a ProfessorRating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness ,

Write a Java program that creates a ProfessorRating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity. The value for each rating is in the range of 1 to 5, with 1 is the lowest and 5 is the highest.

Test this class in main() method by creating an instance of ProfessorRating, allow user to enter the value for each rating and display the overall rating.

Include appropriate constructors and getter/setter methods for each data member in ProfessorRating class. Do not allow the professor id to be changed after an object has been constructed.

Provide a method calcRating() to compute and return the overall rating average, and displayResult() method to display all ratings and the average rating formatted with no decimal points

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