In a predator-prey simulation, you compute the populations of predators and prey,using
Chapter 4, Problem P4.28(choose chapter or problem)
In a predator-prey simulation, you compute the populations of predators and prey,using the following equations:prey prey A B predpred pred C Dn n nn n++= ( + )= + 1111 preyn ( )Here, A is the rate at which prey birth exceeds naturaldeath, B is the rate of predation, C is the rate at whichpredator deaths exceed births without food, and Drepresents predator increase in the presence of food.Write a program that prompts users for these rates, theinitial population sizes, and the number of peri ods. Thenprint the populations for the given number of periods.As inputs, try A = 0.1, B = C = 0.01, and D = 0.00002with initial prey and predator populations of 1,000 and 20.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer