Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA NETBEANS HELP! I need to make a word search generator for a homework assignment. I need it to either store words or pull words

JAVA NETBEANS HELP!

I need to make a word search generator for a homework assignment. I need it to either store words or pull words from a file.

The stored words or words in a file will then be added into the word search at random. It MUST be random!

I do not know if it is possible, but I would prefer the word list be able to be stored by catagory, and then have the random selection pull random words from a specific catagory.

The idea is to generate multiple puzzles based off the same groups of words.

For Example: Stored words:

Months of Year

January, February, Marc,h April, May, June, July, August, September, October, Novemeber, December

Seasons

Spring, Summer, Winter, Fall

Ocean Animals

Whale, Dolphin, Octopus, Shrimp, Barracuda, Lobste,r Clam, Coral, Crab, seal, sea turtle, Squid, Orca, Manatee, Stingray, Seahorse, Tuna, Starfish, Walrus, Jellyfish, Otter, Oyster, Shark, Salman

Now I need the random selection to pull only a FEW words from maybe all catagories or maybe only 2 catagories.

How would I do this???

Please Help!

output would be:

wordsearch (Matrix would be fine)

Find length of longest word randomly selected.

All puzzles should be 10 characters across...

Length (down) would be 14 or longest word randomly pulled.

Then display the words that were randomly pulled. so from the example words above it would be:

Y Z W N C A L K R S U Z E O J B P R X W C A P H P N E R J G M A R C H T E W I V Q B I Y S M I H C L N G A B R C Q A D S I M O R J A N L I Q H L I U C M U E K V P T N Y L U J N G D L E S G U V E M A H O U B Q S G O Q K J D J Z C V P V F Z G Z T M H H W M N F N K T C M A N C R A W 
APRIL CRAB DOLPHIN JANUARY JULY JUNE LOBSTER MARCH WHALE 

In this example it pulled words from only 2 of the 3 catagories and produced a 10 x 14 puzzle

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

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

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago