#ifndef HOURLY_EMPLOYEE_CPP
#define HOURLY_EMPLOYEE_CPP
#include <iostream>
#include <string>
#include <cstdlib>
#include "HourlyEmployee.h"

using namespace std;

HourlyEmployee::HourlyEmployee() : Employee(), wageRate(0), hours(0) {setNetPay(hours*wageRate);}

HourlyEmployee::HourlyEmployee(const string& theName, const string& theSsn, double theRate, double theHours):	Employee(theName, theSsn), wageRate(theRate), hours(theHours){setNetPay(hours*wageRate);}

void HourlyEmployee::setHours(double newHours){
	hours = newHours;
	setNetPay(hours*wageRate);
	}

void HourlyEmployee::setWageRate(double newWageRate){
	wageRate=newWageRate;
	setNetPay(hours*wageRate);
	}

double HourlyEmployee::getHours() const{
	return hours;
	}

double HourlyEmployee::getWageRate() const {
	return wageRate;
	}

void HourlyEmployee::printCheck() const{
	cout<< "---------------------------------" <<endl
		<<"Pay to the order of " <<name <<endl
		<<"the sum of " <<netPay <<"Euros" <<endl
		<<"---------------------------------" <<endl
		<<"hourly Employee. Hours worked: "<<hours <<", Rate: " <<wageRate <<endl
		<<"---------------------------------" <<endl;
	}

#endif
