Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Java program I want you to use a hash map to make a decision about whether some zoo animals are mammals. Using the data

# Java program

I want you to use a hash map to make a decision about whether some zoo animals are mammals.

Using the data set from https://archive.ics.uci.edu/ml/datasets/Zoo read the data file and decide whether each animal is a mammal. your program must use a hash map to hold the data. Further, your program must produce the list of mammals based on the data in the hash map. (In other words, don't decide and print out whether each animal is a mammal as its read then just create the hash map to complete the assignment.) You can add data fields as you read the data in. You can create a 19th boolean to indicate if its a mammal. After all the data has been read go back through all the keys in the hash map and decide if the data associated with each key indicates if that animal is a mammal or not.

You may use the java hash map classes. You may use the source code from the book to create the hash maps. You may create your own hash maps from scratch. If you create your own hash maps you do not need to use generics but you need to differentiate your "hash map" from just a linked list or binary search tree.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions