Answer the question
In order to leave comments, you need to log in
How to calculate in which year there was the largest increase in population compared to the previous year?
Educational task and faced such a problem.
There is a file (listed below) that stores data on world population since 1950, according to the US Census Bureau (2017). And you need to find out in which year there was the largest increase in population compared to the previous year.
The file has two columns: year and population.
And what year is it supposed to be?
As I understand it, I think it is necessary to iteratively minus the number of the population and display the result. But I can't figure out how to implement it.
The file contains the following data:
year population
1950 2,557,628,654
1951 2,594,939,877
1952 2,636,772,306
1953 2,682,053,389
1954 2,730,228,104
1955 2,782,098,943
1956 2,835,299,673
1957 2,891,349,717
1958 2,948,137,248
1959 3,000,716,593
1960 3,043,001,508
1961 3,083,966,929
1962 3,140,093,217
1963 3,209,827,882
1964 3,281,201,306
1965 3,350,425,793
1966 3,420,677,923
1967 3,490,333,715
1968 3,562,313,822
1969 3,637,159,050
1970 3,712,697,742
1971 3,790,326,948
1972 3,866,568,653
1973 3,942,096,442
1974 4,016,608,813
1975 4,089,083,233
1976 4,160,185,010
1977 4,232,084,578
1978 4,304,105,753
1979 4,379,013,942
1980 4,451,362,735
1981 4,534,410,125
1982 4,614,566,561
1983 4,695,736,743
1984 4,774,569,391
1985 4,856,462,699
1986 4,940,571,232
1987 5,027,200,492
1988 5,114,557,167
1989 5,201,440,110
1990 5,288,955,934
1991 5,371,585,922
1992 5,456,136,278
1993 5,538,268,316
1994 5,618,682,132
1995 5,699,202,985
1996 5,779,440,593
1997 5,857,972,543
1998 5,935,213,248
1999 6,012,074,922
2000 6,088,571,383
2001 6,165,219,247
2002 6,242,016,348
2003 6,318,590,956
2004 6,395,699,509
2005 6,473,044,732
2006 6,551,263,534
2007 6,629,913,759
2008 6,709,049,780
2009 6,788,214,394
2010 6,858,584,755
2011 6,935,999,491
2012 7,013,871,313
2013 7,092,128,094
2014 7,169,968,185
2015 7,247,892,788
2016 7,325,996,709
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question