Question: In Section 2 . 3 , we described a program that copies the contents of one file to a destination file. This program works by
In Section we described a program that copies the contents of one file to a
destination file. This program works by first prompting the user for the name of the
source and destination files.
Write the program using the template, ProgramTemplate.java, provided and be sure to
include all necessary error checking, including ensuring that the source file exists.
Download the ProgramTemplate.java file and rename it as Programjava. Any line
that starts with the characters is a comment in Java and the compiler ignores it
Remove the angle brackets, and in any line that starts with lines and
replace it with the appropriate information.
Remove the angle brackets, and in line and enter your full name. Compile
your program and correct all syntax errors and warnings. You will not receive credit
for the program if it does not compile successfully or if it contains errors.
Every program that you write in this course must include lines through line
must reflect your DriverControllingMain class and the developerInfo lines to
method and comments. You will not get full credit if some of the lines are
missing.
No input, processing or output should happen in the main method. All work
should be delegated to other nonstatic methods and handle all exceptions where
necessary.
Do not use the break statement or the continue statement, in loops, in the
program. Also, do not use the System.exit method or arrays in the program.
You will not receive credit for the program if you do
All classes in this program must be public, nonstatic and not nested in other
classes.
Every method in your program should be limited to performing a single, welldefined task, and the name of the method should express that task effectively.
Run your program and copy and paste the output to a file named Programoutput.txt
Create a folder named, Program Copy your source
code and the output file to the folder. Zip the folder, as a zip file, and upload it to
Blackboard.
Before you upload your program to Blackboard:
Ensure that your code conforms to the style expectations set out in class and
briefly discussed below.
Make sure your variable names and methods are descriptive and follow standard
capitalization conventions.
Put comments wherever necessary. Comments at the top of each module
should include your name, file name, and a description of the module. Comments
at the beginning of methods describe what the method does, what the
parameters are, and what the return value is Use comments elsewhere to help
your reader follow the flow of your code.
Program readability and elegance are as important as correctness. After you
have written your method, read and reread it to eliminate any redundant lines of
code, and to make sure variables and methods names are intuitive and relevant.
Read the assignment very carefully to ensure that you have followed all instructions and
satisfied all requirements.
You will not get full credit for this program if it is not written as instructed even if
it works as expected.
Author:
Program #:
File Name: ProgramTemplate.java
Course:
Due Date:
Instructor:
Chapter:
Description:
public class ProgramTemplate
Method: main
Description: The main method of the program
Parameters: String array
Returns: NA
public static void mainString args
Create an object of the main class and
use it to call the nonstatic methods
ProgramTemplate obj new ProgramTemplate;
obj.developerInfo;
End of the main method
Method: developerInfo
Description: The developer information method of the program
This method and comments must be included in all
programming assignments.
Parameters: None
Returns: NA
public void developerInfo
System.out.printlnName: ;
System.out.printlnCourse: COSC Operating Systems";
System.out.printlnProgram: One";
System.out.printlnDue Date:
;
End
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
