This time you are given the freedom to design your
program on your own under the constraints given below. There will be no
UML to follow.
Your program must query the user about what file the user wants to
copy, and what file name the user wants to copy the program to. Let us
for example assume that the user has chosen to copy the file demo.txt
and has chosen output.txt
as their file name to copy to. Your program has to open demo.txt, and
read it in. It need to open/create output.txt and write the contents of
demo.txt to output.txt. Your program also needs to create another
output file named as output-half.txt
which will contain every other line of the input file (demo.txt) in this example.
To help you get in the habit of good program writing, I am imposing the following additional restrictions on your program.
- You may not have
more than three lines of code in the main method
- You must comment your code. We are starting to get to the point
where you are writing longer programs and doing more on your own. you
will need to start commenting your code so that both you and I know
what you are trying to do. To this end credit in the assignment will be
reservedfor grading your comments.
- Add a readme.txt file as a text file in your submission. Your readme file should contain
- your name
- a brief (one paragraph) description of how
you implemented the project,
- anything that is left undone in the project.
again zip up your project folder and submit it to me by email. Make sure that your submitted zip file
contains your first initial and last name as part of the zip file name.