Question: use c language, xcode This exercise investigates a model for two species of organisms that interact as predator and prey (see Haefner Ch 3, Exercise
use c language, xcode
This exercise investigates a model for two species of organisms that interact as predator and prey (see Haefner Ch 3, Exercise 7). Your job is to write a computer program to solve the set of equations describing these two species: Vt+1=Vt+rVtaVtPtPt+1=Pt+abVtPtdPt For these equations, V is the prey organism and P is the predator organism, r is the prey reproductive coefficient, d is the predator death coefficient, a is the prey consumption rate coefficient, and b is the conversion of prey to new predators (how many predators can be made per prey consumed). Try the following values for the model parameters: r=0.01a=0.0005d=0.1b=0.1 For the initial population sizes (at t=0 ), use: V0=1500P0=50 You should run the model for as many time steps as needed to see how the populations will vary in the future - probably at least 400 time steps or even more
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
