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