Write an application that displays the populations for the


You need to write a program for the instructions given below:

Assume that the population of Mexico is 121 million and that the population increases 1.05% annually (new population = current population x 1.0105). Assume that the population of the United States is 315 million and that the population is reduced 0.16% annually (new population = current population x 0.9984).

Assume that the population of Japan is 127 million and that the population increases 1.01% annually (new population = current population x 1.0101).

Write an application that displays the populations for the three countries every year until both Mexican and Japanese populations pass US population. Display the number of years it took for Mexico's and Japan's populations to exceed that of the United States. Use both while loop and for loop to accomplish the task. Save the two files (one for each type of loop) as Population_while.java and Population_for.java

Please submit the source code for your program along with a word document that includes screen shots of the compiled results and executed output. The page margins on the top, bottom, left side, and right side should be 1 inch each.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write an application that displays the populations for the
Reference No:- TGS02361473

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)