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
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