You will write the logistic growth of a fish stock, find its maximum sustainable yield, and run a fixed catch for many years to see whether the stock lasts.
The idea. The yearly growth is . The largest growth is , at . Each year the new stock is the old stock plus the growth minus the catch, and never below zero.
Your tasks.
growth. It gives the yearly growth of a stock N.msy. It gives the maximum sustainable yield.run. It starts from N, takes catch every year for years years, and gives the final stock.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…