Question: JAVA Task #6 Documenting a Java Program 2. Compare the code listings of Numeric Types.java with Mileage.java. You will see that NumericTypes java has lines

JAVA
JAVA Task #6 Documenting a Java Program 2. Compare the code listings

Task #6 Documenting a Java Program 2. Compare the code listings of Numeric Types.java with Mileage.java. You will see that NumericTypes java has lines which have information about what the program is doing. These lines are called comments and are designated by the // at the beginning of the line. Any comment that starts with /** and ends with */ is considered a documentation comment. These are typically written just before a class header, giving a brief description of the class. They are also used for documenting methods in the same way. Write a documentation comment at the top of the program which indicates the purpose of the program, your name, and today's date. Add comment lines after each variable declaration, indicating what each vari- able represents Add comment lines for each section of the program, indicating what is done in that section Finally add a comment line indicating the purpose of the calculation 3. 4. 5

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!