Answered step by step
Verified Expert Solution
Question
1 Approved Answer
do it in java please Create class Carnivore,Herbivore and Plant. Carnivore and Herbivore need energy to survive. Carnivore eats Herbivore and Herbivore eats Plant to
do it in java please
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 orientedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started