Question: Create a text file (.txt) called input.txt that contains the following data: Jack, 20.0, 35.0, 100 Bob, 30.0, 40.0, 150 The file format of the

Create a text file (.txt) called input.txt that contains the following data: Jack, 20.0, 35.0, 100 Bob, 30.0, 40.0, 150 The file format of the input.txt file is a comma delimited file and is defined as follows: , , , Create a class called FileReport in FileReport.java that contains a main() function that will read in all data from the input.txt file and produce the following output (to the screen): Employee: Jack Hourly Wage: $20.00 Hours Worked: 35.0 Total Pay: $700.00 Parts Tested: 100 Employee: Bob Hourly Wage: $30.00 Hours Worked: 40.0 Total Pay: $1200.00 Parts Tested: 150 Ensure that the input.txt file is saved within the same folder as FileReport.java before running it. Add exception logic to inform the user if something goes wrong and the application is unable to process the input.txt file. The program should NOT crash if the file is not available.

I am having trouble understanding how to get the data from the txt file to work with the java file

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!