Please write code using MatLab R2017a Problem 3. Logistic Population Growth The
ID: 3122910 • Letter: P
Question
Please write code using MatLab R2017a
Problem 3. Logistic Population Growth The US. population for years 1810-2010 are listed below: Calendar Year Years since 1900, t opulation in million, N (t -90 1810 7.24 -80 1820 9.64 -70 1830 12.87 -60 1840 17.07 -50 1850 23.19 -40 31.44 1860 -30 1870 38.56 -20 50.19 1880 -10 62.98 1890 1900 76.21 10 1910 92.23 20 1920 106.02 30 1930 123.20 40 1940 132.16 50 1950 151.33 1960 60 179. 70 203.30 1970 80 1980 226.54 90 1990 248.71 100 281.42 2000 110 2010 307.75 A logistic population growth can be described by the following equation: N (t) 1+ B exp(-At)Explanation / Answer
Ans-
clear
N = input('Give numerator: ');
D = input('Give denominator: ');
if D==0
'Sorry, cannot divide by zero'
else
ratio = N/D
end
clear
exchange_rate = 0.5;
amount = input('Give amount in dollars: ');
amount_in_foreign_currency = exchange_rate*amount