Question: Java Program A Scavenger Hunt is a party game that people play in teams. They are given a list of items to find throughout the

Java Program

A Scavenger Hunt is a party game that people play in teams. They are given a list of items to find throughout the surrounding neighborhood. Our challenge is to find the best data structure to store the results of the hunt. b. Create a list of 100 items that you might have people find on the hunt. These should be items that they have a chance of finding throughout the neighborhood. For example,yesterday's newspaper, a shoelace, a paperbag,.... Load the list anyway you want (console input, flatfile, etc.)

You will run the program two times, once using a set of ArrayLists, and once using a set of LinkedLists. Our purpose is to find the more efficient data structure to use for a scavenger hunt.

Ask the user how many teams will play the game. Create this number of teams. For each team load all of the items from the list. Shuffle the list after loading the items each time. Find the total time it takes to add the items to all of the teams.

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