//This is the file salariedemployee.cpp //This is the implementation for the class SalariedEmployee. //The interface for the class SalariedEmployee is in //the header file salariedemployee.h. #include #include #include "salariedemployee.h" using std::string; using std::cout; using std::endl; namespace SavitchEmployees { SalariedEmployee::SalariedEmployee( ) : Employee( ), salary(0) { //deliberately empty } SalariedEmployee::SalariedEmployee(string newName, string newNumber, double newWeeklyPay) : Employee(newName, newNumber), salary(newWeeklyPay) { //deliberately empty } double SalariedEmployee::getSalary( ) const { return salary; } void SalariedEmployee::setSalary(double newSalary) { salary = newSalary; } void SalariedEmployee::printCheck( ) { setNetPay(salary); cout << "\n__________________________________________________\n"; cout << "Pay to the order of " << getName( ) << endl; cout << "The sum of " << getNetPay( ) << " Dollars\n"; cout << "_________________________________________________\n"; cout << "Check Stub NOT NEGOTIABLE \n"; cout << "Employee Number: " << getSsn( ) << endl; cout << "Salaried Employee. Regular Pay: " << salary << endl; cout << "_________________________________________________\n"; } }//SavitchEmployees