school/cs142/final/salaried.cpp

14 lines
284 B
C++
Raw Normal View History

2016-04-06 20:45:34 -07:00
#include "salaried.h"
#include "employee.h"
using namespace std;
salaried::salaried(string name, double pay_rate, int hours, string type) : employee(name, pay_rate, hours, type) {}
int salaried::get_salary() {
if(hours > 170/2) {
return pay_rate;
}
return 0;
}