You will get email Reply within few hours

Tuesday, 28 May 2013

gross payroll for each of its 7 departments

Design a modular algorithm code (C#) that solves the following problem:



A company wants to see a printout of the gross payroll for each of its 7 departments. The output should be a list of the seven departments and the total gross payroll (rate times hours) for each department. Be sure to validate the input data. If a line of data is invalid print out an error message along with the invalid data, then continue processing with the next record.



The file containing the employee data that will be used for the calculations is structured as follows:



FIELD DESCRIPTION DATA TYPE VALID VALUES

Employee ID Character Non blank

Department number Numeric 1-7

Hourly Salary Numeric at least 10.00

Hours Worked Numeric greater than 0



The fields in each record will be separated by a comma

For Example: EID001, 2, 15.50, 40


OR

Click here to get solution