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
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
Get step-by-step solutions from verified subject matter experts
