You are to create a class object called "Employee" which includes eight private variables:
- firstN
- lastN
- idNum
- wage: holds how much the person makes per hour
- weekHrsWkd: holds how many total hours the person worked each week.
- regHrsAmt: initialize to a fixed amount of 40 using a constructor.
- regPay
- otPay
After going over the regular hours, the employee gets 1.5x the wage for each additional hour worked.
Methods:
- constructor
- properties
- CalcPay(): Calculate the regular pay and overtime pay.
Create an "EmployeeDemo" class. In the main function, the program should ask the user the number of employees in the company and create a 2-dimensional dynamic array (number of employees by 4 weeks). Then, the program should ask the user to enter each employee's information and the amount of hours they worked weekly. The program shows a menu with the employee's name for the user to choose which employee to display the following information:
- How much the person totally made
- How much of the paycheck is regular pay
- How much of the paycheck is overtime pay