Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Read the problem statement below and create a header file for a class that will

ID: 3648913 • Letter: R

Question

Read the problem statement below and create a header file for a class that will be used for the solution. The Department of Mathematics, Computer, and Information Sciences need to create a system that stores faculty information (name, ssn, title, number of hours, teaching, and highest degree). NOTE: Your class should only worry about one faculty member. The facultyInfo class should take into account that a faculty object could be created without the information initially being known. You should have mechanisms that will allow for entry at any point after the object is created. Their class should also have a mechanism for outputting all the data in the facultyInfo object. Also include a UML Diagram.

Explanation / Answer

#ifndef FACULTYINFO_H #define FACULTYINFO_H #include #include using namespace std; class facultyInfo{ private: string name,title,teaching,hDegree; int ssn,numHours; public: facultyInfo(){//constructor setName(""); setTitle(""); setTeaching(""); setHDegree(""); setSsn(0); setNumHours(0); }; ~facultyInfo(){};//destructor void setName(string x){name=x;}//accessor functions void setTitle(string x){title=x;} void setTeaching(string x){teaching=x;} void setHDegree(string x){hDegree=x;} void setSsn(int x){ssn=x;} void setNumHours(int x){numHours=x;} void PrintInfo(); }; void facultyInfo::PrintInfo(){ //note that the social is not formated...or checked for cout