Week 4 Assignment

advertisement
Week 4 Assignment
Your program should begin with a splash screen, as before.
It should use JOptionpane to prompt the user for an input file name.
It should use JOptionpane to prompt the user for a file extension. (See the example realFileCopy)
It should use JOptionpaneto prompt the user for an output file name.
It should use System.getProperty("user.dir") as shown in the example code realFileCopy.java in the class
examples directory to get the directory for file copying. This method call will return the directory in
which the source resides. This will make it easy for me to test your program. It is a lot easier than
copying and pasting a path.
(Remember, now you can log on to Portal, click on OIS next to CS142 in My Classes, and there is a link to
the class page).
It should open the input file, and copy it line by line to the output file, with a catch:
each line should be written backwards.
Sample input:
Sample output:
The program should be submitted by OIS DropBox by Tuesday, the 21st, midnight.
Download