yee number, last name, first name, middle name, rate trans.csv - employee number, in, ou
IN JAVA - OOP
Input File
----------
employee.csv - employee number, last name, first name, middle name, rate
trans.csv - employee number, in, out
Output File
-----------
comptrans.csv - employee number, total hours, overtime, pay
1. Open the two input files for reading. Use the statement below to convert each
line read to an array:
String[] objEmployee = strLine.split(",")
2. Compute for the following:
total hours = out - in
overtime = total hours - 8
pay = total hours * (rate + 15%)
3. Write to the output file only those employees with transaction and display the
following on screen:
Employee number Full name in out total overtime pay
--------------- -------------------------- --- --- ----- -------- ---
xxxxxx last, first middle initial
Step by step
Solved in 2 steps with 3 images