Question
This Is a Java Program Assighnment Case 2: Dr. Jane GuessHerName of Duke University, Durham, North Carolina, has approached you with a nagging problem they
This Is a Java Program Assighnment
Case 2: Dr. Jane GuessHerName of Duke University, Durham, North Carolina, has approached you with a nagging problem they have in the Zoology Department. The department have cataloged some animals by category. They want to have an application that will allow students and other users to enter a name of an animal, and it will tell the student/user the type of animal it is (i.e. whether it is a mammal, bird, reptile, amphibia, or fish).
You will develop a functioning program that will do just that plus the following.
When the user enters the wrong animal name, it should tell the user something like, The animal you selected is either not in our collection or you have typed the name incorrectly. Re-enter the animal you want to identify and classify. You may use a different error message from this suggested one and redirection to make your application user-friendly.
In addition, the application should have a menu item that allows the user to select a menu item that matches the animal group (e.g. 1 for mammals, 2 for birds, 3 for reptiles, 4 for amphibians, 5 for fish).
Then, the menu item selected that matches the animal group will display the list of animals in that category. If the user enters a number outside this range, the user should get an error message and be prompted to select from the valid menu list (the program re-feeds the list to the user to display the correct list).
When the user makes the right selection and gets the answer, the program should ask, Do you want to look up another anima? Enter y for yes and n for no? If the user select yes the program brings back the menu to look up an animal. If no, the program quits and says, Thanks for searching. The entry of y or n should not be case sensitive.
Animal Kingdom txt
Animal Kingdom
Mammals Marsupials, Echidna, elephants, moles, insectivores, pangolin, bats, cats, dogs, panda, walrus, whale, beaver, macaques, pigs, monkeys
Birds Penguin, egrets, grebes, wren, mallard, ducks, waterfowl, flamingo, heron, storks, osprey, kites, eagle, hawk, harriers, raptors, lammergeier, falcon, fowl, sandpiper, eagle, gull, puffin, pigeons, parrots, cuckoo, cockatoo, owls, tits, finch
Reptiles Turtle, terrapins, tortoise, crocodiles, alligators, iguanas, chameleon, gecko, skinks, python, boa, snake
Amphibians Frog, toad, newt, salamander
Fish Shark, ray, sturgeon, eels, carp, tetra, piranha, catfish, salmon, trout, pike, whitefish, lionfish, perch, cichlids, damselfish
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started