Create your own eclipse java project and filereverserxw

Assignment Help C/C++ Programming
Reference no: EM131021837

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;
}

Reference no: EM131021837

Questions Cloud

Calculate the required rate of return on ordinary shares : Calculate the required rate of return on ordinary shares of the above two banks using Capital Asset Pricing Model.
Describe the project life cycle model used in organization : Write a four-page summary of the project including all the elements listed in the instructions. At least two references must be used and one of them must be obtained from an Online Library peer review.
A comparison of the statement with the cash account : On May 31, 2014, Reber Company had a cash balance per books of $7,196.50. The bank statement from New York State Bank on that date showed a balance of $6,819.60. A comparison of the statement with the cash account revealed the following facts.
What impact did this have on teamwork : Temporary teams are an integral part of an organization's success. Describe some of the key components of temporary teams. Also, explain how temporary teams impact teamwork in the entire organization.
Create your own eclipse java project and filereverserxw : 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. Create your own Eclipse Java project, FileR..
What type of bias associated with a data collection system : Would the results of this survey be considered a random sample - what type of bias might be associated with a data collection system such as this?
Perpetual inventory system and the periodic inventory system : What are the major differences between the perpetual inventory system and the periodic inventory system? What are special considerations for each when doing adjusting and closing entries?
What is the level of output in country a : The aggregate production function in country A is given by Y = √(K · L), where (Y) is real GDPor output, (L) is labor, and (K) is capital. In Country A the capital stock is constant at K = 81. Given this information and holding everything else cons..
Analyse the ethical dilemma using acs code of conduct : Analyse the ethical dilemma using the Australian Computer Society Code of Professional Conduct - Use the same ethical dilemma or ethically questionable situation that you identified in your first assignment.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to display the total salary for assistant

Write a program to display the total salary for assistant professors, associate professors, full professors, and all faculties, respectively, and show the average salary for assistant professors, associate professors, full professors, and all facu..

  C programming applications

The current-voltage characteristic or I-V curve is a relationship, typically represented as a chart or graph, between the electric current through a circuit, device, or material, and the corresponding voltage,  or  potential  difference  across  i..

  Write a program to find how much time takes to travel

Write a program C. An object is traveling "x" miles/second after every 2 minutes its current and speed is decreased by 1.7%. How much time it takes to travel "y" kilometers from its origin

  Prompts the user to input the shipping cost per liter

Write a program that does the Prompts the user to input the dimensions (in feet) of the container (radius the container (radius of the base and the height)

  Program that asks the user to enter the monthly costs

write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile:

  Implementation of the recursive algorithm

Develop an iterative method having the same functionality as the recursive nextPermutation method - Create a class SortingFunctions.

  A program computes and displays the number of centimeter

The Earth's ocean levels have risen an average of 1.8 millimeters per year over the past century. Write a program computes and displays the number of centimeters and number of inches the oceans rose during this time.

  Relationship between obesity and food consumption

Researcher states that there is relationship between obesity and food consumption. Obesity is the condition of excess body fat and it can get diabetes, heart disease, high blood pressure and also fatal. People in the US getting obese because of the l..

  Draw the extensive-form version of game

Consider a game between Joe and Snake. This game takes place in the morning after Joe has had breakfast. Snake can do two things: fight Joe or not. He likes fighting with people who are feeling cowardly and gets a payoff of 1 if he does. Snake, howev..

  Program specifications for a simple business problem

Given a set of program specifications for a simple business problem utilizing a modular design, code and test a program that meets the specifications and employs best programming practices.

  Show what is output by the following segment of code.

Show what is output by the following segment of code.

  The bubble sort is also define as the ripple sort one

the bubble sort is also define as the ripple sort. one implementation of this sorting methods is to recurrently move

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd