Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/employee-payroll-c/
- 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
- Download: http://solutionzip.com/downloads/employee-payroll-c/
Advertisement
Add Comment
Please, Sign In to add comment