Tuesday, May 3, 2011

ABCCompany.java

Past Year CSC238 Oct 2010 Part B Question 5

Write a complete program to perform the following:
Read the data from the file named "Employee. t x t " .
Determine the employee status based on the following table

Employee Status Number of year services
Junior                   < 10
Senior                   >=10

Store the employee name and current salary into an output file named
"Junior. t x t " for junior employee and "Senior. t x t " for senior employee.
Calculate the new salary for each of the employee by using the following formula:
New salary = current salary + (current salary x (percent salary increase/100))
Store the employee name and their new salary into an output file named
"EmployeeUpdate. txt".
Use exception handling operations to deal with the file input-output errors.