Question: Project Assignment 3 Description: Computer Science Department is evaluating its professors to See which professor has the highest rating according to student input. You

Project Assignment 3 Description: Computer Science Department is evaluating its professors to See which professor has the highest rating according to student input. You will create a ProfessorRating class consisting of professor Name 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 being the lowest and 5 being the highest. Your program should contain the following functionalities: a. b. c. d. e. g. Create a class named ProfessorRating with 4 data members: profName with string type and easiness, helpfulness, and clarity with int type Your class should contain the following methods: a. b. C. d. e. g. h. default constructor which initializes the private data members initialization constructor which passes four parameters and sets the value for each data member a copy constructor: ProfessorRating(const ProfessorRating &profRating) a destructor a getter (accessor) method for each data member. double calcRating() const returns the average rating ((easiness+helpfulness+clarity)/3.O) void print() const displays the professor name and his/her three ratings and the average rating. void setData(string name, int easy, int help, int clari) assigns parameter values to each private data member. An overloaded operator function bool operator (const ProfessorRating &) Checks if two professors have the same ratings for easiness, helpfulness and clarity. Create your class in a header file (ProfessorRating.h) with the above structures. Create an implementation file (ProfessorRating.cpp) to implement all the methods in your class. Test your class with user interface in your main program. make sure to include your class header file in your main program) #include "ProfessorRating.h" In your main program, create an array of ProfessorRating which holds a list of 3 professor ratings. You can make your own test data (professor info). const int SIZE=3; ProfessorRating csPr0fs[SIZEJ; Create a function to fill the array with professor names and each rating. void fillprofList(professorRating profList[l) Create a generic function to get each rating int getRating(string ratingType), where ratingType is passed into the function to indicate either "Easiness", "Helpfulness", or "Clarity" that you like to prompt to the user so they can enter proper rating. You will call this function 3 times to get each rating. You need to validate the rating to make sure it is between 1 and 5. Create a function to locate the professor with the highest average rating and display the name and rating. void displayHighestRating(professorRating proflist[])
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below Given code is in C Program ProfessorRatingh Create a class include include using namespace std class ProfessorRating Attributes private std... View full answer
Get step-by-step solutions from verified subject matter experts
