Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions