1
0
Bifurcation 0
school/cs142/final/salaried.cpp

14 lignes
284 B
C++

#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;
}