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 2.3, 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 Program1.java. 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 1-19) and
replace it with the appropriate information.
Remove the angle brackets, "<" and ">", in line 59 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 1 through 40(line 21
must reflect your Driver/Controlling/Main class) and the developerInfo (lines 45 to
64) 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 non-static 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, non-static 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 Program1-output.txt.
Create a folder named, _Program1. 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 re-read 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 #: 1
//
// 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: N/A
//
//**************************************************************
public static void main(String[] args)
{
// Create an object of the main class and
// use it to call the non-static 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: N/A
//
//**************************************************************
public void developerInfo()
{
System.out.println("Name: ");
System.out.println("Course: COSC 4302- Operating Systems");
System.out.println("Program: One");
System.out.println("Due Date:
");
}// End

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!