Home Forums C Programming help I am failing, this is extra credit program

Viewing 0 reply threads
  • Author
    • #2029

      I really need help on this I am failing in my class to pass with C grade the instructor have given me this program as extra credit please help.

      Write a program that reads an employee’s name, number of hours worked and hourly pay from a file.  The number of entries in the file is not known.  The program should calculate the weekly salary and write to a file each employee’s name, hours worked, hourly pay and weekly salary.  The program should use a while loop and continue to process until there is no more data in the file.  In addition to the information on each employee, the program should collect and write to the file the following summary data:  total number of employees, total hours worked, average hours worked, total weekly salary and average weekly salary.  (This program should not use arrays.)

Viewing 0 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.