Question: Problem B: (20 Points) Computing Population Growth based on the number of the generation, Revisited pulation-ecology-13228167, over twenty According t five percent of all amphibians
Problem B: (20 Points) Computing Population Growth based on the number of the generation, Revisited pulation-ecology-13228167, over twenty According t five percent of all amphibians are in serious danger of going extinct. Why are some species more vulnerable to extinction than others? How can current rates of individual survival and reproduction be projected into the future? The Earth's human population has doubled in less than fifty years. What challenges do we face with this unprecedented growth? What factors might most effect the rates of this growth into the future? Population ecology is the study of these and other questions about what factors affect population and how and why a population changes over time D For this problem you will write a program to calculate a population based on one of two very simple growth models. unspecified group of 1. Define and use a pure C++ function to calculate the future population of an ng organisms based on the number of generations of growth Equation a below can be used to the population of generaton N, based on the Inital populatdon of the organisms No, and o" where Q is the number of offspring per parent in one generation: Equation a) N-No The function should accept, and n as parameters and return, Define and use a pure C++ function to calculate the future population of an unspecified group of living organisms based on time and rate of doubling. Equation b below can be used to calculate the population of generation N, based on the initial population of the organisms No, and 2d where t is time and d is the rate of doubling, and both t and d are specified in the same units of measure 2. Equation b) N. N2/a . The function should accept No, t, and d as parameters and return N (Courtesy of Prof Joan Sonenewski Using appropriate UNIX commands and an editor, create and save a source file containing a Ct+ program the calculates the Population of for generation n (%) of an unspecified population, given user input of Ng, Q, and n, using the equation above, or calculates the population for at time t (N), given user input of No, t, and d. The next page ilustrates what example runs of your program should look like (user input is in bold font) after your program compiles without syntax, semantic, or run-time errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
