Answer:
// Program is written in C++ Programming Language.
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
int main()
{
// Declare and Initialise Variables
int year = 2011;
float rate = 0.011;// 1.1%
double population = 7000000000;
// Iterate through years to get number of years
// Population will get to 8 billion
while(population<8000000000)
{
// Calculate new population
population = population * ( 1 + rate);
// Population = Population * Population * Rate
year++;
}
//End loop
// Print Population and Year
cout<<"Population in "<<year<<" is "<<population;
}
return 0;
}