Program must be written in C++:
Create a parent class called CompSciProfessor. Each professor has name (type string), email (type string), and facultyId (type long). Specialize the CompSciProfessor class into two more classes: AdjunctProf, and TenureTrackProf classes. The specialized class AdjunctProf has three attributes of its own: degree (type char), NoOfTA (type int), and NoOfCourses (type int). The attribute ‘degree’ refers to the degree of the adjunct professor. You assign ‘B’ to represent bachelor degree, ‘M’ for Master degree, and ‘P’ for PhD. ‘NoOfTA’ refers to the number of TAs the adjunct professor is doing for the courses. For example, if NoOfTA=2, it means the adjunct professor is doing TA for two courses. ‘NoOfCourses’ refers to the number of courses that the adjunct professor is currently teaching in the department. The specialized class TenureTrackProf has two attributes of its own: rank (type char), and YearOfExp (type int). The attribute ‘rank’ refers to the rank of the tenure track professor. You assign ‘A’ to represent Assistant Professor, ‘S’ for Associate Professor, and ‘F’ for Full Professor. ‘YearOfExp’ is used to keep track of the number of years the professor has been teaching in the computer science department. Do the following: 1) Create the base class CompSciProfessor 2) Create the derived classes AdjunctProf and TenureTrackProf 3) Create set and get functions for all attributes of CompSciProfessor class 4) For AdjunctProf class: a. Create set and get function associated with the specialized attributes b. Create a method void print() const that prints both the specialized attributes and inherited attributes c. Create a method called float findSalary( ) const that calculates the salary of the adjunct professor 5) For TenureTrackProf class: a. Create set and get function associated with the specialized attributes b. Create a method void print() const that prints both the specialized attributes and inherited attributes c. Create a method called float findSalary( ) const that calculates the salary of the adjunct professor 6) Implement the default constructor (initialize the attributes to some arbitrary numbers) for all classes 7) Do the following in the main program: a. Create an object of Adjunct professor b. Set the name to “Adam Smith”, facultyId to12345, email to “asmith@csusm.edu”, degree to “Master degree”. Adam Smith is teaching 1 course and is doing teaching assistant (TA) for two courses. c. Call the findSalary() method to find the salary of Adam Smith d. Print Adam Smith’s information (properties) on the screen 8) Further: a. Create an object of Tenure Track Professor: b. Set the name to “Jim Anderson”, FacultyId to 54321, email to “janderson@csusm.edu”, rank to “Associate Professor”. Jim Anderson is working for 8 years in the department of computer science. c. Call the findSalary() method to find the salary of Jim Anderson d. Print Jim Anderson’s information (properties) on the screen The salary of an adjunct professor is calculated as follows: Salary = The amount of money earned from doing TA + The amount of money earned from teaching courses Degree Salary for one TA Salary for teaching one course Bachelor $1500 $3000 Master $2000 $4000 PhD $2500 $5000 For example, if an adjunct professor has a master degree and doing 2 TA and teaching 3 courses, he/she earns (2*$2000)+(3*$4000) = $16000 The salary of a tenure track professor is calculated as follows: Salary = The base salary based on the rank + ($1500 *Year Of Experience) Rank Base Salary Assistant $65,000 Associate $80,000 Full $90,000 For example, a full professor with 10 years of experience earns ($90000+($1500*10) = $105,000)








Program must be written in C++: Create a parent class called CompSciProfessor. Each professor has name...
In this laboratory, we are going to build a base class and a collection of derived classes. Write the code to implement the class Person. A person has a name, address,telephone number and and E-Mail address. Be sure to include accessor functions to return each of these values. Create a derived class Student which has a class status (freshman, sophomore, junior, or senior). Create a derived class Employee which has the attributes office, salary, and date hired. Now define a...
Last picture is the tester program!
In this Assignment, you will create a Student class and a Faculty class, and assign them as subclasses of the superclass UHPerson. The details of these classes are in the UML diagram below: UHPerson - name : String - id : int + setName(String) : void + getName(): String + setID(int) : void + getID(): int + toString(): String Faculty Student - facultyList : ArrayList<Faculty - rank: String -office Hours : String - studentList...
using C++
Requirements: . Classes you must create o Monster must be an abstract class Each monster has . an attack) o randomly generate a number between 0 and strength for each attack (Strength 10 would generate 0-10) add up all the damage done return total damage o o e a number of attacks . a number for strength used during attacking . a string representing the type » accessor for type o Goblin inherits from Monster type is "Goblin"...
Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...