1. Engineering
  2. Computer Science
  3. write a simple c payroll program that would read employees...

Question: write a simple c payroll program that would read employees...

Question details

Write a simple C++ 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: employee’s name (30 bytes), employee’s 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.
  4. Display the average wages at the end.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution