adding cs142 code
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "administrator.h"
|
||||
#include "employee.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
administrator::administrator(string name, double pay_rate, int hours, string type) :
|
||||
employee(name, pay_rate, hours, type) {}
|
||||
|
||||
int administrator::get_salary() {
|
||||
if(hours > 170) {
|
||||
pay_rate += pay_rate * .1;
|
||||
}
|
||||
return pay_rate;
|
||||
}
|
||||
Reference in New Issue
Block a user