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 ShConnect p Extas Tell ma what you want to co. Tony Gadds-Startin....Aasigment1-Proteas.. PDFs on Mac COSC 1437 - Assignment 1: Professor Rating The

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 csProfs(NUM PROFESSORS); lype here to search 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 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 "ProfessorRatingh" d. In your main program, create a vector of ProfessorRating which holds a list of 5 professor ratings. const int NUM PROFESSORS 5 vector csProfs(NUM_PROFESSORS); e. Create a function to fill the vector with professor names and each rating. You can either create a menu to prompt the user to enter professor names and ratings for each then call the function or hardcode the values in this function void fillProflist(vector profList) f. Create a generic function to get each rating. Call this function when populating the professor's information above int getRating(string ratingType), where ratingType is passed into the function to indicate either "Easiness", "Helpfulness", "Friendliness" or "Clarity" that you like to prompt to the user so they can enter proper rating. You will call this function 4 times to get each rating g. Create a function to locate the professors with the highest and lowest average rating and display the name and rating of the professors. Call the function from your main() program to output the information void displayHighestandLowestRating(vector proflist) h. Create a display function to show the average of ALL ratings of the professors using the class's calcRating() function Call this display function from your main() program to output the information. void displayAverageRating(vector profList) Format your output with two decimal places. Create a new project and name it FirstName_LastName_A1. Zip the project folder and a screenshot of the input data and output result of the program and submit the zipped file in Canvas. lype here to search Rssunment 1- Profeso Ratng-vector.pdf-Foot Reader Home Comment w Fo Protet Sh Connect p Extas Tell ma what you want to co. and convert Tony Gadds-Startin....Aasigment 1-Proteas.. PDFs on Mac Your output should be similar to the following Professor with highest average rating: ame Bill Gates Easiness: 3 Helpfulness: 4 Friendliness: 5 Clarity :4 Average rating: 4.e0 Professor with lowest average rating: NameJames Gosling Easiness: 1 Helpfulness: Friendliness: 2 Clarity :1 Average Rating: 2.00 Professor Individual Ratings Name Bill Gates Steve Jobs ames Gosling Mark Zuzkerberg Alan Turing Clarity 4 Easiness Helpfulness Friendliness Average Rating 4 5 4 5 4.00 2.75 2. 3.25 2.50 O lype here to search

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!