##A borough has made the following prognosis for the changes ##in population over the next few years: ##At the start of 2004 there were 26 000 inhabitants ##The rates of births and deaths are estimated at 0.7% and 0.6% ##of the population respectively,The number of people moving in and out #of the borough annually is estimated at 300 and 325 respectively. ##Write a program to calculate the borough’s estimated population ##at the beginning of a particular year. year=input("enter year:") Birthrate = 0.007 Deathrate = 0.006 Movein = 300 Moveout = 325 Baseyear = 2004 Basepop=26000 result=(Basepop + (Movein - Moveout) * year) * year^(Birthrate - Deathrate) print "estimated population", (result) #result = baseyear- moveout + movein * birthrate - (year * deathrate)