Question:
Specify, design, and implement a class called employee. The class has data members for the employee’s name, ID number, and salary based on an hourly wage. Member functions include computing the yearly salary and increasing the salary by a certain percentage, Add additional data members to store biweekly paycheck information and calculate overtime (for over 40 hours per week) for each paycheck.
My answer:
To be continued…
Reference:
整理自 Data Structures and Other Objects Using C++ ( Fourth Edition ) Michael Main, Walter Savitch. p125