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

The Department of Mathematics, Computer, and Information Sciences need to create

ID: 3648910 • Letter: T

Question

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 explain what happens when a variable is declared of the facultyInfo object

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
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote