Using Java language Create a text file called employee. txt. The file should contain the following content:
Name
Surname
Years Worked Salary
John
Smith
4
15000
(20 MARKS)
Ayanda
Damien
Dube
Naidoo
10
5
200000
65000
Write a Java program that reads the contents of the text file. For each employee in the file, update their salary and overwrite the contents of the existing file to reflect the changes. Salary increase is based on the following criteria:
Years Worked Increase
< 5
5%
5-10
> 10
15%
30%
NB: Make sure you catch all the exceptions that might occur.



Answer :

Other Questions