Site icon Study Fy

I need help ASAP

I need help ASAP

Question Description

I’m working on a C Programming project and need support to help me study.

Write an application (including algorithm) that uses an input file to process the payroll of a company. The file format includes a record for each employee that contains the following information (each field separated by colon)

• First Name

  • Last Name
  • Employee ID
  • Pay Rate
  • Hour Worked
  • The application must read the file of records and store the information in parallel arrays (maximum size of each array will be 100 entries). Therefore the application must be designed to support a file that contains a maximum of 100 employees. In addition an array, “wages” must be used to store the salary of each employee. The wages are calculated based on the following logic.

    If Hours Worked <= 40

    Wage = Pay Rate * Hours Worked

    Else

    Wage = Pay Rate * 40 + ((Hours Worked – 40)* Pay Rate * 1.5)

    The application must display all the array information (tabular format) for each record, in sorted order, based on the employee wages and display the total of all of the employee wages at the bottom of the table.

    Upload to the Canvas “Assignment 4 Submission” area.

    Note: The application must read all records of the file by using the technique of testing for the end-of-file (i.e., cannot prompt user for the number of records in the file).

    Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

    Exit mobile version