Question: write a simple c payroll program that would read employees...
Write a simple C++ payroll program that would:
- Read employee’s information from a disk file (attached with email). The text file includes records of employees. Each record includes: employee’s name (30 bytes), employee’s id (5 bytes), hourly rate (int), hours worked (int).
- Calculate the wage for each employee based on the hourly rate and the hours worked.
- Display on the screen the employee’s name and wage in the order of wages.
- Display the average wages at the end.