Write a simple payroll program that would:
1.Read employee's 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).
2.Calculate the wage for each employee based on the hourly rate and the hours worked.
3.Display on the screen the employee's name and wage in the order of wages.
Write a simple payroll program that would:
1.Change the structure in project #3 to a 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 class's functions):
7.Read employee's information from a disk file (attached with email for project #3). 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 employee's name and wage.
10.Repeat step 7 through 9 until the end of file.