Question: This activity will enable you to apply what you will learn during this course.You need to write a program for the instructions given below:CSSJAVAAssume that
This activity will enable you to apply what you will learn during this course.You need to write a program for the instructions given below:CSSJAVAAssume that the population of Mexico is million and that the population increases annually newpopulation current population x Assume that the population of the United States is million andthat the population is reduced annually new population currentpopulation x Assume that the population of Japan is million andthat the population increases annually new population currentpopulation x 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 Populationwhile.java and Populationfor.javaPlease submit the source code for your program along with a word document that includes screen shots of the compiled results and executed output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
