Question: Write a simple payroll program that would: 1.Use the class; 2.Making all variables of the class private; 3.Add constructors, mutator, accessors, input, & output functions;
Write a simple payroll program that would: 1.Use the class; 2.Making all variables of the class private; 3.Add constructors, mutator, accessors, input, & output functions; 4.Save the class declaration in a head file; 5.Save the definitions of the class in a .cpp file; 6.Write a main function to (using classs functions): 7.Read employees information from a disk file (attached with email). The text file includes records of employees. Each record includes: employees name (30 bytes), employees id (5 bytes), hourly rate (int), hours worked (int). 8.Calculate the wage for each employee based on the hourly rate and the hours worked. 9.Display on the screen the employees name and wage. 10.Repeat step 7 through 9 until the end of file.
note:please write this programme in c++, not too long.
A.Smith 20001 25 40 T.Philip 20002 20 35 S.LOng 20003 15 50 G.Santos 20004 30 30 F.Farkas 20005 22 55
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
