Question: Objective: Write a program where a user populates a collection of various cats and dogs. The user should be able to specify which type they

 Objective: Write a program where a user populates a collection ofvarious cats and dogs. The user should be able to specify which

Objective: Write a program where a user populates a collection of various cats and dogs. The user should be able to specify which type they wish to enter, and then are prompted with the pertinent information for every type of pet. Requirements: The structure of the program should follow this UML class diagram AnimalCollection AnimalFrontEnd animals: Animall + addAnimal(Animal): void + removeAnimal(String): void +printAnimals(void + static main(Stringll args)void Animal -name: String -weight: double Cat Dog -mood: String energyLevel: int Wolf -type: String -numberOfSpots: int -type: String -packLeaderName: String You may also include elper methods and attributes that are not noted in the class Additional Notes The weight for animal should be strictly greater than 0 The mood for a cat should cither be slecpy", "playful", or "hungry" The encrgy level for a dog should be betwcen 0 and 100 inclusively The type of house cat should one of the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!