View the step-by-step solution to:

Below is the prompt given by my professor: "Java program that creates a ProfessorRating class consisting of professor ID and three ratings.

Below is the prompt given by my professor:


"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 point"



If someone can help me solve this and possibly give me tips on how these should be laid out, I would be very appreciative.

Top Answer

Output: Enter Profesor ID:  1001 Enter the first as rating1:  3... View the full answer

javaout1.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online