Reference no: EM13938065
Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to change private in the base class to protected. You are to supply the following additional data and function members:
A member variable of type string that contains the administrator's title (such as Director or Vice President).
A member variable of type string that contains the company area of responsibility (such as Production, Accounting, or Personnel).
A member variable of type string that contains the name of this administrator's immediate supervisor.
A protected: member variable of type double that holds the administrator's annual salary. It is possible for you to use the existing salary member if you did the change recommended earlier.
A member function called set_supervisor, which changes the supervisor name.
A member function for reading in an administrator's data from the keyboard.
A member function called print, which outputs the object's data to the screen.
An overloading of the member function print_check() with appropriate notations on the check.
-------------------------------------------------------------------------------------------------
//This is the header file salariedemployee.h.
//This is the interface for the class SalariedEmployee.
#ifndef SALARIEDEMPLOYEE_H
#define SALARIEDEMPLOYEE_H
#include <string>
#include "employee.h"
using std::string;
using namespace std;
namespace SavitchEmployees
{
class SalariedEmployee : public Employee
{
public:
SalariedEmployee( );
SalariedEmployee (string theName, string theSsn,
double theWeeklySalary);
double getSalary( ) const;
void setSalary(double newSalary);
void printCheck( );
private:
double salary;//weekly
};
}//SavitchEmployees
#endif //SALARIEDEMPLOYEE_H
Attachment:- salariedemployee.zip
How do organisms acquire energy
: What is the purpose of this pathway? What are the reactants? What are the products?
|
Develop a set of hrm recommendations for a fictitious
: Develop a set of HRM recommendations for a fictitious, scenario organisation that will be assigned by the Faculty Member that contains the three primary assessment elements.
|
Prepare the entry to recognize the issuance of the bonds
: Prepare the entry to recognize the issuance of the bonds. Prepare the journal entry for December 31, 2009. Prepare the journal entry for December 31, 2010.
|
Create a new smartphone application
: Create a new smartphone application. The paper should include what the application is, it should be particularly based on or for students for our university.
|
Write a program that uses the class salariedemployee
: Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to change private in the base class to protected. You..
|
Fundamental frequency of this function
: Make a list of the Fourier an and bn coefficients and, from these, calculate the amplitude at each of the frequencies. Now sketch the function in the frequency domain .You should ignore any phase difference..
|
Prepare the entries to recognize the borrowing
: Prepare the entries to recognize the borrowing, the first year's interest expense, and the second year's interest expense plus redemption of the note at maturity.
|
Explain why it might make sense to cut prices so low that
: If you were managing a monopoly, and small entrant tried to enter your market, explain why it might make sense to cut prices so low that you would suffer losses for a time. Imagine that you are managing a small firm and thinking about entering the ma..
|
Reason for merger activity
: The US has a _________________ because foreigners invest more in the US than we invest in foreign countries. Which of the following is NOT given as a reason for merger activity in the U.S.?
|