Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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) : image text in transcribedimage text in transcribed

Sample File Output Above ^

In Java please.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions