Handling Text Files, Basic Computer Science

I. Write an application that accomplishes the following tasks:

1. Read a text file that contains, integers, doubles, alphabet, alphanumeric, and others. The name of the input file should be entered as a command-line argument.
2. All other files should also be entered as command-line arguments. For example, you may include the following:
data6.txt integersOut.txt doubleOut.txt alphabeticOut.txt alphanumericOut.txt othersOut.txt
3. Check each token you read and save in the appropriate type of ArrayList.
4. Write each type of lists to a separate output text file with appropriate header with 6 values per line separated by tabs or spacing.
5. Write the average values of integers and doubles to the appropriate files
6. Write the longest token of the alphabet, alphanumeric, and others to the appropriate file
Posted Date: 2/12/2013 11:16:23 AM | Location :

Related Discussions:- Handling Text Files, Assignment Help, Ask Question on Handling Text Files, Get Answer, Expert's Help, Handling Text Files Discussions

Write discussion on Handling Text Files
Your posts are moderated
Related Questions
Greedy Search-artificial intelligence: If we have a heuristic function for states, as defined above, then we may simply measure each state with respect to this measure an

Ask queYou are hired as a Chief Technology Officer (CTO) of a startup company, which has two branches; one Los Angeles and one in San Francisco. The company hired employees to begi

Ask qu The figure below shows a rooted tree, 756_Find the height.png 1.1. Find the height/level of the tree as shown above?estion #Minimum 100 words accepted#

the chemical reactions in a battery produce ____________, each of which carries energy.

(iv) Suppose that the TCP entity receives a 1.5 megabyte file from the application layer and that the IP layer is willing to carry blocks of maximum size 1500 bytes. Calculate the

Question 1 What is routing? Explain the principles of routing Question 2 Explain different types of server operations in Enterprise Networking Question 3 Briefly d

ALU’s tasks and their suitable subcomponents: Addition and subtraction these two tasks are carried out by constructs of logic gates, such as half adders and full adders. While they

NETWORKING AND TELECOMMUNICATIONS: Computers can now communicate with each other and with a range of peripheral devices, over distances with increasing speed and reliability.

QUESTION 1 What are search engines? QUESTION 2 Write short notes on the inverted file. QUESTION 3 Write short notes on: (i) Derivative indexing (also known a

Question 1 With an example, illustrate the concept of extern variable Question 2 What is the difference between pointer variable and simple variable? Question 3 Give the