Review the attached javadoc unzip the file and open the


This is an Extra Credit programming assignment that is built off of the File Reverser project done for Chapter 4. It includes using Methods, so can replace any lower grade on any programming assignment through Chapter 5's (Regular Polygon). Please pay close attention to the requirements to get full credit if you choose to do this Extra Credit assignment!

1. Watch the video that describes the behavior that this program must have for full credit in the Execution grade portion.

2. Make sure to Format and Generate Javadoc and have comments for all methods and fields, whether public or private, as well as the main, application class.

3. In addition to the main() method, the application must have three methods:

o One to obtain the input file object (Scanner class is the one we have used in the past)

o One to obtain the output file object (PrintWriter was used in the posted solution)

o One to do the actual file reversal, using those methods.

4. Review the attached Javadoc (unzip the file and open the index.html file in a browser), and class UML diagram. These are from the project in the video, so should be clear how the implementation proceeds.

5. Create your own Eclipse Java project, FileReverserXW, and complete it.

o Test to insure it has the correct behavior for canceled or invalid input.

o Make sure to Format the source code

o Make sure to Generate Javadoc and make sure there are no errors or warnings.

6. Zip the project folder and submit to this Dropbox.

Since we have not covered Exceptions yet, here is the code used for the getInputFile method shown in the video. (The getOutputFilemethod have similar exception handling, but without the looping, since there is no input prompt.)

private static Scanner getInputFile() {
Scanner inputFile = null;
booleangotUserInput = false;
while (!gotUserInput) {
try {
inputFilePath = JOptionPane.showInputDialog(null,
"Enter the full path to the input file to read. Click Cancel to quit.",
TITLE, JOptionPane.QUESTION_MESSAGE);
if (null != inputFilePath) {
File fileIn = new File(inputFilePath);
inputFile = new Scanner(fileIn);
}
gotUserInput = true;
} catch (FileNotFoundException e) {
JOptionPane.showMessageDialog(null, "Unable to open input file:\n" + e,
ERROR_TITLE, JOptionPane.ERROR_MESSAGE);
}
}
return inputFile;
}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Review the attached javadoc unzip the file and open the
Reference No:- TGS01368810

Expected delivery within 24 Hours