help I am failing, this is extra credit program

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

This topic contains 0 replies, has 1 voice, and was last updated by  gaurav 10 years, 2 months ago.

  • 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.)

You must be logged in to reply to this topic.