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
Extracted text: trans - Excel File Home Insert Page Layou Formulas Data Review V - 11 BIU- A A Calibri % Paste Alignment Number Clipboard Font E5 A D 1 E0010027 2 E0050078 3 E0050087 4 E0070061 6.3 14 16.5 7.3 16.45 5.5 2.05 5 E0080095 8.02 16 B.
Extracted text: employee - Excel Home Insert Page Layou Formulas Data Revie File Calibri 11 % BIU - A A Paste Alignment Number A- Clipboard a Font M17 fe A B D E 1 E0010023 Crisostom 2 E0010027 Bernardo Jay 3 E0030034 Garcia 4 E0050078 Librador Charmaigı Arnulfo 5 E0050087 Lander 6 E0070054 Meno 7 E0070061 Menandrc Jenny 14 Galvez Ongpin Rodolfo Mejia Vera Perez Arvie |Тораcio Corpuz 8 E0080070 Nono Grace Picache 9 E0080095 Patricio Luzvimind Pelaez