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

QUESTION

OOP Project Description Requirements: You are to design and build a zoo organizer. The zoo organizer should keep track of a set of animals.

Bird

Eagle

Hawk

Every animal also has a life expectancy, which is how many years we think that animal should live. The following rules show how to determine the life expectancy.

1.     All of the mammal's life expectancy is 15 - age. So, if a mammal is 5 (15-5 = 10), the life expectancy is 10 years.

2.     Iguana's life expectancy is (1 / age) * 10. So if an iguana is 5 (1/5 * 10) = 2, the life expectancy is 2 years.

3.     Turtles seem to live very long. Their life expectancy is 110 - age. So if a Turtle is 5, (110 - 5 - 105), the life expectancy is 105 years.

4.     We don't know much about the life expectancy of birds. Always show their life expectancy as 5 years.

The software will validate that the file data has valid animal names and throw a new exception Invalid Animal Exception with an appropriate message otherwise when it finds the first invalid name. The file will not be loaded in that case.

When a user creates a new set of animals, they need to be able to add an animal to the set. They should also be able to update and delete animals in the set. The organizer should only show one set of animals at a time.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question