On Jul 14, 1:37 pm, Patricia Shanahan <p...@acm.org> wrote:
Baazigar wrote:
Need help with this problem
Problem:
Create a program that will take the input file "\datafiles
\Asst06Input.txt"
(note file path when copying file from web to your usb)
as posted to the web, & sort the input file into 3 output files by
type:
1. character values
2. odd number values (can be positive or negative)
3. positive integer values (can be odd or even)
using a java application with file i/o capabilities.
Assignment Specifications:
Create a flowchart to solve this problem (flowchart must be submitted
prior to coding).
Then, using jGrasp:
Code the problem in Java using 1 file input stream and 3 file output
streams.
Use print (not println), and add w.s. ( + ? ? ) as a delimiter to
separate data when you write data
to the files.
Submit your source code (.java file)
Submit your 3 output files.
Turn in your assignment by the end of class tonight for full credit.
(see syllabus for assignment grading details)
WARNING! Do not modify the input file in any way. Save it directly to
your usb drive ?as is.?
If you are having trouble getting started, seehttp://www.patriciashanahan.com/beginner.htmlfor some general advice.
What have you tried so far? What are you finding difficult? You are more
likely to get useful help if you ask specific questions, rather than
just posting your assignment.
Patricia
Sorry I have tried the problem And thought posting the assignmtnt
might welcome good answers
In this program we are asked to sort out and output the values in the
input file into three types I have done the program but cannot
figureout how to output the files into specific output files.
three types would be Char, Odd number and positive
specified names. You can use each of your FileOutputStream objects to
create a PrintStream and call its print method.