Write a program that uses the class SalariedEmployee. Your program is to define a derived class called Administrator, which is to be derived from SalariedEmployee. You are to supply the following data and function members in the Administrator class: A member variable of type string that contains the administrators title (e.g., Director, Vice President) A member variable of type string that contains the company area of responsibility (e.g., Production, Accounting) A member variable of type string that contains the name of this administrators immediate supervisor A protected member variable of type double that holds the administrators annual salary (if the salary is for an administrator, the salary is kept in this variable, not the salary variable in the SalariedEmployee class) A member function that returns each of the variables above A member function which sets each of the variables above A member function called print, which outputs the objects data to the screenThe SalariedEmployee class is to contain the following: Member variables containing the following data: name, ssn, netPay, wageRate, hours, department (the variables wageRate and hours are to be set to private) A member function that returns each of the variables above A member function which sets each of the variables aboveWrite a program which instantiates employees and administrators (at least 5 employees and 2 administrators). Write a user interface with a menu to make it easy for the user to enter data into the objects. Then, once the data is entered, give the user options to change any data for an employee or administrator; and to print an employees check with the information that was input (name, ssn, netPay, hours, wageRate, hours worked), along with the current date.
Programming
[Solved] SOLVED:program that uses the class SalariedEmployee
$25
File Name: SOLVED:program_that_uses_the_class_SalariedEmployee.zip
File Size: 480.42 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.