Question: 1. Create an input file for your program. See below for the input file format and sample data. 2. Report column specifications. Define the columns

1. Create an input file for your program. See below for the input file format and sample data.

2. Report column specifications. Define the columns in the printf statements that generate the report such that they are wide enough to hold data at least as large as the data that appears in the sample input file below. All data in each column should be properly lined up (see example report below). The name column should be left justified and the other columns should be right justified.

3. Ask the user to enter the name of both the input and output files. Whatever names they enter at the command line during execution should be used for input and output.

For example, if the user types in the string VetVisit.txt for the input filename then the input data should be read from that file. The same goes for the output file. If the user enters the string Report.txt for the output file then the report should be written to that file.

Tip: (DO NOT HARD CODE THE FILENAMES INTO THE PROGRAM)

4. Comment the code using javadoc by generating the HTML documents that the Javadoc utility creates. (all classes and methods should have a specific type of javadoc comment.)

5. Indent correctly ( first statment after start of a block should be indented, end of a block should be unindented with respect to previous statement, start and end of a block should be at the same level of indent)

File Format / Sample Input File (Visit.txt) : 1. Create an input file for your program. See below for theinput file format and sample data. 2. Report column specifications. Define the

Sample File Output Above ^

In Java please.

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 Databases Questions!