Employee Class 1 Program Employee Class Member Variables Last Name Hourly Pay Rate Number Q24093370
C++ programming
Employee Class 1) Program an Employee class with these member variables last name hourly pay rate number of hours worked Your class should have these member functions constructor-creates new Employee object and inputs all member variables get functions- returns values of member variables set functions-sets values of member variables totalPay-computes hours worked times pay rate and returns total pay for each employee 2) Write a main program which creates an array of four Employee objects. The program should input name, pay rate, and hours worked for each object, and display total pay. Your output should look something like this Employee Name Gross pay Jackson 400.00 Rodriguez 365.75 Chang Demos $120.00 $ 213.75 4 3) Separate your class definition and main program from part 2 into two files. Ensure you can build and run your program with the same output Show transcribed image text Employee Class 1) Program an Employee class with these member variables last name hourly pay rate number of hours worked Your class should have these member functions constructor-creates new Employee object and inputs all member variables get functions- returns values of member variables set functions-sets values of member variables totalPay-computes hours worked times pay rate and returns total pay for each employee 2) Write a main program which creates an array of four Employee objects. The program should input name, pay rate, and hours worked for each object, and display total pay. Your output should look something like this Employee Name Gross pay Jackson 400.00 Rodriguez 365.75 Chang Demos $120.00 $ 213.75 4 3) Separate your class definition and main program from part 2 into two files. Ensure you can build and run your program with the same output