Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Discuss the goals of financial management.

Answered: 1 week ago

Question

Takes ownership for turning plans into action.

Answered: 1 week ago