Question: Rssunment 1- Profeso Ratng-vector.pdf-Foot Reader Home Comment w Fo Protet Sh Connect p Extas Tell ma what you want to co. Tony Gadds-Startin....Aasigment 1-Proteas.. PDFs



Rssunment 1- Profeso Ratng-vector.pdf-Foot Reader Home Comment w Fo Protet Sh Connect p Extas Tell ma what you want to co. Tony Gadds-Startin....Aasigment 1-Proteas.. PDFs on Mac COSC 1437 - Assignment 1: Professor Rating The Computer Science Department is evaluating 5 professors to see which professor has the highest rating according to student input. You will create a ProfessorRating class consisting of professor name and four ratings. The ratings are used to evaluate Easiness, Helpfulness, Friendliness 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. Your program should contain the following functionality: Create a class named ProfessorRating with 5 data members: profName with string type and Easiness, Helpfulness, Friendliness and Clarity with int type a. b. Your class should contain the following methods 1. constructor which initializes the private data members 2. double calcRating() -returns the average rating ((easiness+helpfulness+friendliness+clarity)/4.0) 3. void print() - displays the professor name and his/her rating. 4. void setData(string name, int easy, int help, int friendly, int clear) - assigns parameter value to each private data member c. Create your class in a header file (ProfessorRating.h) with the above structures. Test your class with user interface in your main program.make sure to include your class in your main program) #include "ProfessorRating.h" d. In your main program, create a vector of ProfessorRating which holds a list of 5 professor ratings. const int NUM PROFESSORS 5; vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
