Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this excercise, research world population growth issues online. Be sure to i

ID: 3664623 • Letter: F

Question

For this excercise, research world population growth issues online. Be sure to investigate various viewpoints. Get estimates for the current world population and its growth rate (%age by which it likely to increase this year).

Write a program that calculates world population growth each year for the next 75 years, using the simplifying assumption that the current rate will stay constant. Print the results in a table form. For example; The first column should display the year from year 1 to year 75. The 2nd column should display the anticipated world population at the end of that year. The 3rd column should display the numerical increase in the world population that would occur at that year. Using your results, determine the year in which the population would be double what it is today, if this year's growth rate were to persist.

Explanation / Answer

Here is the codes:

Java..........................

class PopulationGrowth
{
public static void main(String args[])
{
float pop = 7000000000;
double rate = 0.01;
float increase = 0;
int x = 1;
System.out.println( "Year Population Increase" );
for( int y = 2012; y <= 2087; y++ )
   {
System.out.println(""+ y +" "+ pop +" "+increase);
increase = pop * rate;
pop += increase;
if ( pop > 14000000000 )
   {
while( x > 0 )
{
   System.out.println ("Population doubled at end of "+ y);
x--;
}
}

}
}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote