For your final assignment, you are to create a database for a zoo that will keep track of the number of animals on hand. For each animal name (aadvark, camel, horse, etc.) there is only one count. The database will have three functions:
The names of the animals will taken from this list of animal names. Note that all animal names are in lower case and do not contain spaces.
You should write a main method that reads in commands from standard input and executes the corresponding operation. Commands are all of the form <letter><animal> where <letter> is one of A, D, or C (for Add, Delete, and Count, respectively), and <animal> is the name of the animal. There will be one command per line and there is no space between the letter and the name. After reading in a Count command, the program should print, to standard output, the count of the animals with that name currenly in the database. At the end of the program run, the program should also print out the number of collisions that occurred during the run of the program (see below).
If you have questions or comments, email me at simon@mathcs.duq.edu