Question: Question: write a java program that read a file that contains worker's ID, name, how many hours they work per day, and based on that

Question: write a java program that read a file that contains worker's ID, name, how many hours they work per day, and based on that information to write a program that produces output that contains worker's name, ID, how many hours each worker has work in total , and their average working hour per day based on the days they spend to work. Below is the content of the file 123 Kim 12.5 8.1 7.6 3.2 456 Brad 4 11.6 6.5 2.7 12 789 Stef 8 7.5 012 Nancy 3 9 2.5 4.5 1.5 1 345 Kevin 40 678 Dayne 1.5 2.0 3.5 4.5 5.0 901 Iva 9 8.5 7 6.5 5 4.5 234 Jordan 0 0 0 1 0 0 0 567 Gabe 5.0 3.0 2.5 890 Lisa 12.5 16.5 Output Example: Enter an ID: 456 Brad worked 36.8 hours(7.36 hours/day)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!