-
Notifications
You must be signed in to change notification settings - Fork 1
/
salesperson.hpp
executable file
·38 lines (30 loc) · 984 Bytes
/
salesperson.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef SALESPERSON_HPP
#define SALESPERSON_HPP
#include "employee.hpp"
#include <string>
class Salesperson : public Employee {
private:
// member variables
double sales;
double normalPay;
const double commissionFactor; // multiplier that is applied to commission
double commission;
public:
static const int maxNumOfPaidHours;
virtual double getSales() const;
virtual double getCommission() const;
virtual double getNormalPay() const;
Salesperson( std::string position, std::string firstName, std::string lastName, std::string SIN, std::string birthMonth,
int birthDay, int birthYear, double hourlyPayRate, double rate );
virtual bool reset();
virtual bool setSales( double sales );
protected:
virtual double calcWeeklyPay();
private:
virtual double calcNormalPay();
virtual double calcCommission();
virtual void printPayBreakdown() const;
public:
virtual void printPayInfo() const;
};
#endif