You can download the BlueJ project from here, http://speedy.sh/rMGVz/foxes-and-r
ID: 3544963 • Letter: Y
Question
You can download the BlueJ project from here, http://speedy.sh/rMGVz/foxes-and-rabbits-graph-1.zip
The assignment is to add predator and prey classes that inherit from animal. Then create Owl and Mouse classes that inherit from predator and prey. Also modifying other classes as necessary to support these new classes. Make sure to assign appropriate probabilities so that the simulation continues to be stable. Track each animal in the graph.
Note: Do not remove the fox and rabbit classes.
I can extend the time on this if you ask. Thank you.
Explanation / Answer
import java.util.List;
import java.util.Iterator;
import java.util.Random;
/**
* A simple model of a owl.
* Owls age, move, eat mouses, and die.
*
* @author David J. Barnes and Michael K
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.