There should be proper documentation in the source code the


The novel, Twenty Thousand Leagues under the Sea was written by the Frenchman Jules Verne in 1870. It's the story of a submarine, the Nautilus, which traveled 20000 leagues. One league is 3.45 miles. So the voyage was almost 70000 miles. The distance around the world is 25000 miles. So, in 20000 leagues, the sub could travel around the voyage world almost 3 times.

Write a non-GUI Java program that prompts the user for a number of leagues traveled. Then the program should convert the leagues to miles and determine how many times the user could go around the world with the given number of leagues. For example, if the user inputs 100000 leagues, the program will output that 100000 leagues is 345000 miles and that the user could go around the world 13.8 times with number of leagues entered.

The Java application should meet these technical requirements:

There should be proper documentation in the source code. The documentation should include a block containing the name of the program and the name of the student, and a short description of the program. There should be comments for each line of code.

The student must submit the .java source code files with the correct file names for all classes used. The program must consist of at least one public class.

Programs are expected to compile and run/execute correctly.

The application should have at least one class, in addition to the application's controlling class (a controlling class is where the main function resides).

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: There should be proper documentation in the source code the
Reference No:- TGS01299479

Now Priced at $40 (50% Discount)

Recommended (97%)

Rated (4.9/5)