Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You may NOT write this program as a GUI (Graphical User Interface). That would earn no points. a program that reads a file named input.txt

You may NOT write this program as a GUI (Graphical User Interface). That would earn no points.

a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this and so should your output file. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself.

DO NOT WRITE TO input.txt! That will cost a lot of points. Double check this. There is no sin worse than wiping out the client's input file due to carelessness.

  1. Your class name must be FileCopy. Capitalization counts. It must be in a file named FileCopy.java. Not Project.java or FileCopyUpload.java. (5% of grade)
  2. It should be in a package named mypackage, as explained in this week's videos. (5% of grade)
  3. Put your name at the top of the source file. (5% of grade)
  4. Project.txt mentioned above must be uploaded and done as specified. (5% of grade)
  5. You must use proper indentation like in the book and use meaningful variable names. (5% of grade)
  6. Your program must work in Eclipse, even if you use a different IDE to develop it. It is best to use Eclipse. I am starting you with a simple Eclipse project to get you ready for more complex projects.
  7. Upload FileCopy.java and Project.txt.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

FileCopyjava package mypackage import javaioBufferedReader import javaioBufferedWriter import javaio... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Subtract the polynomials. (-x+x-5) - (x-x + 5)

Answered: 1 week ago