linux2[71]% a.out Your greeting goes here It should include a good explanation of the predator/prey simulation. Original rabbit population : Please enter an integer between 0 and 500 : 5 Original fox population : Please enter an integer between 0 and 500 : 0 Birth rate of rabbits : Please enter a value between 0.000000 and 1.000000 : .7 Death rate of foxes : Please enter a value between 0.000000 and 1.000000 : 0 Interaction constant : Please enter a value between 0.000000 and 1.000000 : 0 Number of years : Please enter an integer between 1 and 50 : 15 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 1 ------------------------------------------------- Simulation - Rabbits Only 15 years with a birth rate of 0.700 Year # Rabbits # Foxes ------------------------------------------------- 0 5 0 1 8 0 2 13 0 3 22 0 4 37 0 5 62 0 6 105 0 7 178 0 8 302 0 9 500 0 10 500 0 11 500 0 12 500 0 13 500 0 14 500 0 15 500 0 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 5 linux2[72]% a.out Your greeting goes here It should include a good explanation of the predator/prey simulation. Original rabbit population : Please enter an integer between 0 and 500 : 0 Original fox population : Please enter an integer between 0 and 500 : 500 Birth rate of rabbits : Please enter a value between 0.000000 and 1.000000 : 0 Death rate of foxes : Please enter a value between 0.000000 and 1.000000 : .5 Interaction constant : Please enter a value between 0.000000 and 1.000000 : 0 Number of years : Please enter an integer between 1 and 50 : 18 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 2 ------------------------------------------------- Simulation - Foxes Only 18 years with a death rate of 0.500 Year # Rabbits # Foxes ------------------------------------------------- 0 0 500 1 0 250 2 0 125 3 0 62 4 0 31 5 0 15 6 0 7 7 0 3 8 0 1 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 5 linux2[73]% a.out Your greeting goes here It should include a good explanation of the predator/prey simulation. Original rabbit population : Please enter an integer between 0 and 500 : 300 Original fox population : Please enter an integer between 0 and 500 : 50 Birth rate of rabbits : Please enter a value between 0.000000 and 1.000000 : .7 Death rate of foxes : Please enter a value between 0.000000 and 1.000000 : .5 Interaction constant : Please enter a value between 0.000000 and 1.000000 : .003 Number of years : Please enter an integer between 1 and 50 : 50 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 3 ------------------------------------------------- Simulation - Rabbits and Foxes 50 years with a rabbit birth rate of 0.700 a fox death rate of 0.500 an interaction constant of 0.0030 Year # Rabbits # Foxes ------------------------------------------------- 0 300 50 1 464 70 2 500 132 3 500 264 4 453 500 5 90 500 6 17 385 7 9 212 8 9 111 9 12 58 10 18 31 11 28 17 12 46 9 13 76 5 14 128 3 15 216 2 16 365 2 17 500 3 18 500 6 19 500 12 20 500 24 21 500 48 22 500 96 23 500 192 24 500 384 25 273 500 26 54 500 27 10 331 28 7 175 29 8 91 30 11 47 31 17 25 32 27 13 33 44 7 34 73 4 35 123 2 36 208 1 37 352 1 38 500 1 39 500 2 40 500 4 41 500 8 42 500 16 43 500 32 44 500 64 45 500 128 46 500 256 47 465 500 48 92 500 49 18 388 50 9 214 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 4 Change the Interaction Constant : Please enter a value between 0.000000 and 1.000000 : .0022 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 3 ------------------------------------------------- Simulation - Rabbits and Foxes 50 years with a rabbit birth rate of 0.700 a fox death rate of 0.500 an interaction constant of 0.0022 Year # Rabbits # Foxes ------------------------------------------------- 0 300 50 1 476 57 2 500 88 3 500 140 4 500 223 5 500 356 6 458 500 7 274 500 8 164 500 9 98 430 10 73 307 11 74 202 12 92 133 13 129 93 14 192 72 15 295 66 16 458 75 17 500 113 18 500 180 19 500 287 20 500 459 21 345 500 22 206 500 23 123 476 24 80 366 25 71 247 26 82 162 27 110 110 28 160 81 29 243 69 30 376 71 31 500 94 32 500 150 33 500 239 34 500 382 35 429 500 36 257 500 37 154 500 38 92 419 39 71 294 40 74 192 41 94 127 42 133 89 43 200 70 44 309 65 45 481 76 46 500 118 47 500 188 48 500 300 49 500 479 50 323 500 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 6 Please enter an integer between 1 and 5 : 0 Please enter an integer between 1 and 5 : 2 ------------------------------------------------- Simulation - Foxes Only 50 years with a death rate of 0.500 Year # Rabbits # Foxes ------------------------------------------------- 0 0 50 1 0 25 2 0 12 3 0 6 4 0 3 5 0 1 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 40 0 0 41 0 0 42 0 0 43 0 0 44 0 0 45 0 0 46 0 0 47 0 0 48 0 0 49 0 0 50 0 0 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 5 linux2[74]% a.out Your greeting goes here It should include a good explanation of the predator/prey simulation. Original rabbit population : Please enter an integer between 0 and 500 : 600 Please enter an integer between 0 and 500 : -1 Please enter an integer between 0 and 500 : 300 Original fox population : Please enter an integer between 0 and 500 : 501 Please enter an integer between 0 and 500 : -1 Please enter an integer between 0 and 500 : 10 Birth rate of rabbits : Please enter a value between 0.000000 and 1.000000 : 5 Please enter a value between 0.000000 and 1.000000 : -2 Please enter a value between 0.000000 and 1.000000 : .75 Death rate of foxes : Please enter a value between 0.000000 and 1.000000 : 3 Please enter a value between 0.000000 and 1.000000 : .25 Interaction constant : Please enter a value between 0.000000 and 1.000000 : .005 Number of years : Please enter an integer between 1 and 50 : 50 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 3 ------------------------------------------------- Simulation - Rabbits and Foxes 50 years with a rabbit birth rate of 0.750 a fox death rate of 0.250 an interaction constant of 0.0050 Year # Rabbits # Foxes ------------------------------------------------- 0 300 10 1 500 22 2 500 71 3 500 230 4 300 500 5 0 500 6 0 375 7 0 281 8 0 210 9 0 157 10 0 117 11 0 87 12 0 65 13 0 48 14 0 36 15 0 27 16 0 20 17 0 15 18 0 11 19 0 8 20 0 6 21 0 4 22 0 3 23 0 2 24 0 1 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 40 0 0 41 0 0 42 0 0 43 0 0 44 0 0 45 0 0 46 0 0 47 0 0 48 0 0 49 0 0 50 0 0 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 7 Please enter an integer between 1 and 5 : 0 Please enter an integer between 1 and 5 : 4 Change the Interaction Constant : Please enter a value between 0.000000 and 1.000000 : .004 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 3 ------------------------------------------------- Simulation - Rabbits and Foxes 50 years with a rabbit birth rate of 0.750 a fox death rate of 0.250 an interaction constant of 0.0040 Year # Rabbits # Foxes ------------------------------------------------- 0 300 10 1 500 19 2 500 52 3 500 143 4 500 393 5 88 500 6 0 500 7 0 375 8 0 281 9 0 210 10 0 157 11 0 117 12 0 87 13 0 65 14 0 48 15 0 36 16 0 27 17 0 20 18 0 15 19 0 11 20 0 8 21 0 6 22 0 4 23 0 3 24 0 2 25 0 1 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 40 0 0 41 0 0 42 0 0 43 0 0 44 0 0 45 0 0 46 0 0 47 0 0 48 0 0 49 0 0 50 0 0 ------------------------------------------------- 1 - Simulate a Population of Rabbits Only 2 - Simulate a Population of Foxes Only 3 - Simulate with Foxes & Rabbits Interacting 4 - Change Interaction Constant 5 - Quit Your choice: Please enter an integer between 1 and 5 : 5