Question: using julia Problem 1.2 Create a variable time that starts in 1900 with 5-year increments and goes to 2015: 1900, 1905, 1910, ... 2015. Suppose
Problem 1.2 Create a variable time that starts in 1900 with 5-year increments and goes to 2015: 1900, 1905, 1910, ... 2015. Suppose that GDP per capita was equal to 3,000 in 1900 and subsequently grew at 1% per year. Plot the evolution of GDP over time by using a for-loop to calculate its value at every date: 1905, 1910, 1915 etc. Show, in the same plot, what the output trajectory would have been like if output grew at 1.5% and 2% per year. (Hint: if a variables grows at a rate of g per year, it gipws at a rate of (1+g)' - 1 in t years.) Then, in another graph, plot the evolution of the natural logarithm of GDP per capita against time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
