Question: code for c++ Create a class called ASUProf that has the following attributes and functions (all attributes are private, all functions are public) The professor's

 code for c++ Create a class called ASUProf that has the

code for c++

Create a class called ASUProf that has the following attributes and functions (all attributes are private, all functions are public) The professor's name, . The professor's current class name (as a string), The professor's current office hours (as a string,), Current salarv A bool for whether the professor is tenure-track or not A default constructor, as well as a constructor that takes the same types of variables as above, and sets them accordingly. A getter for all variables, and a setter for the class name and office hours variables. Also, add a setter for the tenure-track bool, but quit the program if the professor is tenure- track, but the argument for the setter is false. A function salaryRaise that takes a double and updates the salary of the professor accord- ingly; if the professor is tenure-track, then make the raise twice as large than if he/she is not. All of the implementations of the functions are in the .cpp file, not in the class header. Now, create a main method in a separate file than the class, instantiate an ASUProf object witlh appropriate parameters, and then call several of the functions (getter, setter, salaryRaise, etc.), and print some of the results of the functions Create a class called ASUProf that has the following attributes and functions (all attributes are private, all functions are public) The professor's name, . The professor's current class name (as a string), The professor's current office hours (as a string,), Current salarv A bool for whether the professor is tenure-track or not A default constructor, as well as a constructor that takes the same types of variables as above, and sets them accordingly. A getter for all variables, and a setter for the class name and office hours variables. Also, add a setter for the tenure-track bool, but quit the program if the professor is tenure- track, but the argument for the setter is false. A function salaryRaise that takes a double and updates the salary of the professor accord- ingly; if the professor is tenure-track, then make the raise twice as large than if he/she is not. All of the implementations of the functions are in the .cpp file, not in the class header. Now, create a main method in a separate file than the class, instantiate an ASUProf object witlh appropriate parameters, and then call several of the functions (getter, setter, salaryRaise, etc.), and print some of the results of the functions

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!