Question: please do it in java and also send a screenshot of the program running Create class Carnivore,Herbivore and Plant. Carnivore and Herbivore need energy to
please do it in java and also send a screenshot of the program running
Create class Carnivore,Herbivore and Plant. Carnivore and Herbivore need energy to survive. Carnivore eats Herbivore and Herbivore eats Plant to get energy Moving and reproduction consumes energy. Carnivores and Herbivores will reproduce a newborn if they are on a certain age and certain level of energy. The child will be placed next to the parent The simulation environment is a 2D grid (nxn cells). Plants grow at random time, random locations. Herbivores and Carnivores can move to North, South, East, West. Setup a 16 x 16 grid, initialize it by random numbers of Carnivore, Herbivore and Plants. Run it for a specific numbers of iterations (32 is the min). Print the result for each iteration on the console. Carnivore char: @ Herbivore char: & Plant char: # Free space char: - You should be completely object oriented Create class Carnivore,Herbivore and Plant. Carnivore and Herbivore need energy to survive. Carnivore eats Herbivore and Herbivore eats Plant to get energy Moving and reproduction consumes energy. Carnivores and Herbivores will reproduce a newborn if they are on a certain age and certain level of energy. The child will be placed next to the parent The simulation environment is a 2D grid (nxn cells). Plants grow at random time, random locations. Herbivores and Carnivores can move to North, South, East, West. Setup a 16 x 16 grid, initialize it by random numbers of Carnivore, Herbivore and Plants. Run it for a specific numbers of iterations (32 is the min). Print the result for each iteration on the console. Carnivore char: @ Herbivore char: & Plant char: # Free space char: - You should be completely object oriented
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
