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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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