Question: #include #include int main (void) { int i, steps; steps = 10; int Nt= 2; // initial pop. size = 2. float r= 0.25; float
#include
int main (void) { int i, steps; steps = 10; int Nt= 2; // initial pop. size = 2. float r= 0.25; float K= 100; float Nx; //Nx=Nt+1 FILE *outfile; char text[100]; char filename[100]; for (i=1; i The part above is my coding. But my program not show the correct result. Can someone help me fix it? This is the detail about my homework Use C language to write a program for logistic population growth model reproductive rate, r = 0.25 per year carrying capacity, K = 100 Use your program to generate two sets of results; one for a population that starts out very small, well below the carrying capacity and one for a population that starts out above the carrying capacity: Run 1: initial pop. size = 2. Run 2: initial pop. size = 120. Important: Make sure you develop your solution for a sufficient number of time steps so that you can see the full results. Present your results from the two runs in the form of one or two graphs. Make sure that you include in your program a way to save data to a disk file so that you can import the data into a spreadsheet or some other program for drawing graphs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
