Question: 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

C++ programming

C++ programming Employee Class 1) Program an Employee class with these member

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!