subject

In a predator-prey simulation, you compute the populations of predators and prey, using the following equation:s preyn+1 = prey, x (1 + A-B × pred.) predn+1 = predn × (1-C + D × preyn) Here, A is the rate at which prey birth exceeds natural death, B is the rate of predation, C is the rate at which predator deaths exceed births without food and D represents predator increase in the presence of food. Write a program that prompts users for these rates, the initial population sizes, and the number of periods. Then print the populations for the given number of periods. As inputs, try A = 0.1, B-C = 0.01, and D = 0.00002 with initial prey and predator populations of 1,000 and 20 2.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
You know the right answer?
In a predator-prey simulation, you compute the populations of predators and prey, using the followin...
Questions
question
Mathematics, 10.08.2021 18:30
question
Biology, 10.08.2021 18:30
question
Social Studies, 10.08.2021 18:40
question
Social Studies, 10.08.2021 18:40
Questions on the website: 13722360