Question: zoo management system You are creating a program for a zoo management system. The system needs to categorize animals based on their type ( e

zoo management system
You are creating a program for a zoo management system. The system needs to categorize animals based on their type (e.g., Mammal, Reptile, Bird, Fish, Amphibian) using an enumeration type. Additionally, the program should include a custom namespace called ZooData that stores the details of each animal, including its name and species.
Instructions:
1. Write code to define an enumeration type for the animal categories.
2. Create a custom namespace called ZooData that stores the animal's name and species.
3. Implement user input functionality where the program prompts the user to input the category, name, and species of an animal.
4. Write code to display the animal's details using the enumeration type and the information stored in the ZooData namespace.
Animal Category Menu:
e - Mammal
1- Reptile
2- Bird
3- Fish
4- Amphibian
Please select a category (enter a number \(0-4\)):2
Enter the animal's name:Mango
Enter the animal's species:House Sparrow
Animal Details:
Category: Bird
Name: Mango
Species: House Sparrow
Process finished with exit code \(\Theta \)
zoo management system You are creating a program

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 Programming Questions!