Question: java programming . confunsing with this JAVA . Let us now consider an application of difference equations in Mathematical Biology: a model for the growth
Let us now consider an application of difference equations in Mathematical Biology: a model for the growth of certain herbivore insects living on a species of plants. Mathematically, it is a system of difference equations for a sequence (xn), representing the population density of the plants (in some unit) in year n, and a sequence (yn), representing the population density of the insects in year n. These sequences are supposed to fulfill the equation system xn+1yn+1=eyn+xnxn,=(xn+1)yn,n0, with parameters (1,),(0,),(0,1) and with initial conditions x0>0,y0>0. (b) Write a function areParametersValid in the class HerbivoreModel. The function should have exactly one parameter, of type HerbivoreParameters (see part (a)), and return type boolean. The function should check whether the data in the HerbivoreParameters record passed to it fulfill all of the requirements in Eqs. (5)-(6). If this is the case, it should return true; otherwise, it should return false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
