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 eg 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:
Write code to define an enumeration type for the animal categories.
Create a custom namespace called ZooData that stores the animal's name and species.
Implement user input functionality where the program prompts the user to input the category, name, and species of an animal.
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
Reptile
Bird
Fish
Amphibian
Please select a category enter a number :
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
