Answered You can hire a professional tutor to get the answer.

QUESTION

Suppose there is a class animal . Each animal has an age and ID and can move to consume energy or eat to receive energy . I need a system to manage...

Question is all on the picture , and its computer science THANK YOU

19 . Suppose there is a class animal . Each animal has an age and ID and can move to consume energyor eat to receive energy . I need a system to manage the animals in the zoo . There are two majocategories of animals , herbivore and carnivore . I need to be able to search for specific type ofanimal ( Like Lion ) and receive a list of available animals in that category . In addition to that yousystem should be flexible enough so I can add more animals to the list later . * Each animalCarnivore or herbivore , can be dangerous or not . If it is dangerous then there should be amethod get Caution Message that prints a message specifying the animal situation . Create amethod is Dangerous . Where this method goes in the class hierarchy and what should be itsype ( Static or not ) ? In a comment on top of the method , explain why ? * YouAnimal Management System should have a method feed that receives and animal object andprints the caution message if it is dangerous otherwise it feeds the animal ( Which method of theanimal should be activated ) and prints out " CLASS NAME + ID is feeded " . * Create a completeclass hierarchy for this scenario . Use of abstract class , final variable , inheritance , polymorphisminterfaces , is necessary . ( 10 pts )
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question