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

  Make a c program that squares the number

Make a C program that accepts an integer value at the main method from the keyboard and in turn passes the value to a function that squares the number

  Shows the effect of the preceding statements

The following program shows the effect of the preceding statements.

  Calculate the average of 5 test scores, then numbers entered

Write a new program in pseudo-code, it should input and calculate the average of 5 test scores, then numbers entered.

  Find the largest element and print out the index and value

Write a function maxv() that returns the largest element of a vector argument. Find the largest element and print out the index and value.

  Definite versus indefinite loops

Definite versus Indefinite Loops- Describe one (1) scenario not mentioned in the textbook in which it would be advantageous for you to use a definite loop as opposed to an indefinite loop when developing a program. Provide a rationale for your res..

  Write down a program which will calculate and displays min

write down a program which will calculate and displays the min temperature and the maximum temperature for seven days of a week.

  What is the difference between protected and private members

What is the difference between protected and private members? How do the default constructors and destructors behave in an inheritance hierarchy? What is a virtual member function?

  Maturity amount after the period of deposit

Develop a program that accepts a deposit amount and period of deposit. Calculate the maturity amount after the period of deposit. The bank pays 4% interest per year for any deposits made in the bank.

  You are to implement a simple file system with login

you are to implement a simple file system with login authentication and access control. specificallyconstruct a

  Question 1 what basic differences exist between the

question 1 what fundamental differences exist between object-oriented and relational database systems?question 2

  Write a loop that read positive integers from standard input

Any value that is the same as the immediately preceding value is considered a CONSECUTIVE DUPLICATE. In this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. Note that the last 3 is not a consecutive dupli..

  Program loops and if conditions write a program that

program loops and if conditions write a program that requests a password after the authorprogram information is

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