Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Students will design, develop, test and document a Java application that reads data from an input file, processes the data, and then writes the processed data to an output file.
CMIS Program Learning Outcome:
Produce solutions to modern, practical problems using object-oriented programming languages
Prepare clear and precise documentation to support computer and information science applications
Skills used:

This project will allow you to do the following:

• Use the String, Character, and StringBuilder classes and associated methods
• write Java code to read and write data to and from a file
• write clear and unambiguous documentation supporting computer programs and systems

Project Details:

The following requirements provide guidance for your design:
• The application should be run from the command line using command-line arguments to provide the input and output filenames.

• The application should display an appropriate error message if the user forgets to enter the input and output filenames at the command prompt or if the files are not found.

• The application should open the file and read each line of the file.

• For each line read, the application should determine the total number of characters in the line, including white-space characters, determine the number of times the number 4 appears in the line, replace all occurrences of the string "this" with "That", and finally reverse the order of the characters in the line.

• The output file should contain the same number of lines as the input file with the following content for each line:

o total number of characters, including whitespace characters, in the line
o number of times the number 4 appeared in the line
o reversed string (for example, "cats" in the input file would be displayed as "stac")
The items on each line in the output file should be separated by commas (for example: for input line "this4cats", the output line should be "9,1,stac4tahT")
The application should close any open files before exiting.
A detailed user's guide should be developed that clearly documents the way an end user should compile, run, and test the program. Samples of input and resultant output files should be included along with a detailed explanation. The documentation should be clear and free of grammatical and spelling errors. The number of pages should be sufficient to describe the application, i.e., 3-8 single-spaced pages in Times Roman 12 point font.
The user's guide should also include limitations of the program along with suggestions for possible improvements and enhancements for future releases.

The user's guide should be readable using Microsoft Word The page margins should be 1 inch. Lines should be double-spaced. Any figures (screen captures) or tables used should be neatly labeled with a title and a number. (See APA v6 style guides)
All source code should be commented and at a minimum include one block comment at the top of the program containing the course name, the project number, your name, the date, and the platform/compiler you used to develop the project. In addition, there should be at least one comment for each class in the program describing what that class does. Additional comments should be provided for each class method to clarify the program.

>All source code should be indented consistently throughout the program. Variable and method names should describe the role of the variable or method. Single-letter names should be avoided. All constants except 0 and 1 should be named. Constant names should be all uppercase. Variable names should begin in lowercase, but subsequent words should be in title case (e.g., finalSpeed). (see recommended Java code conventions.

Java, Programming

  • Category:- Java
  • Reference No.:- M9524646

Have any Question?


Related Questions in Java

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As