Phase 1

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.

Phase 2

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.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.