## p124ex4 - World Pop

The world's population is increasing at a rate of approximately p% each year. The population in year y was n.

Write a program to estimate the population in the future assuming that the present growth rate continues until that time.

### Input

The first line will be the rate of increase (p), second line will be the starting year of the population (y), the third line will be the population (n) for the starting year and the last line will be the year at which we would like to estimate the population.

### Output

The output will simply be the population that we estimated in the final year.

### Sample Input

`1.6`
`1987`
`5000000000`
`2087`

### Sample Output

`24453487116`

Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

• (0/0)
Can someone please tell me what is wrong with my solution? Thanks!

• (0/0)
Try using a different data type (e.g. double)

• (1/0)
Am I correct in assuming that the dates will both be A.D.?

• (1/0)
Does it really matter for this problem?

• (0/0)
what is the max population for input?

• (0/0)
n < 10 000 000 000

• (1/0)
should the answer be rounded or left as the original double answer?

• (2/1)
Well I don't believe 123456789.5354731 people would make much sense as an estimate...

• (2/0)
The answer should be rounded to the nearest integer. But I do apologize on behalf of whoever forgot to put this in the problem statement (and I mean this in the least passive-aggressive way possible)