Project #27955 - java programming project

Scrabble Help: The dictionary.txt file  attached here contains all of the words in the Official Scrabble Player's Dictionary, Second Edition. (Note this list contains some offensive language.) Write a class, WordLists,  in Java that generates useful word lists for scrabble players using this list. 

 

Your class should contain the following methods:

 

  • WordLists(String fileName):  a constructor that takes the name of the dictionary file as the only parameter.
  • lengthN(int n):  returns an array of words of length n.
  • startsWith(int n, char firstLetter):  returns an array of words of length n beginning with the letter firstLetter
  • containsLetter(int n, char included):  returns an array of words of length n containing the letter included but not beginning with it.
  • vowelHeavy(int n, int m):  returns an array of words of length n containing at least m vowels.
  • multiLetter(int m, char included):  returns an array of words with at least occurrences of the letter included.

 

Write a test class for your WordLists class that tries these methods out and writes the wordlists (the arrays of strings) to text files.

 

 

 

What to hand in:

In addition to the source files for your program include with your submission a text file named readMe.txt with an explanation of what you did. That is, write in plain English instructions for using your software, explanations for how and why you chose to design your code the way you did. The readMe.txt file is also an opportunity for you to get partial credit when certain requirements of the assignment are not met.

 

Put the readMe.txt file in the same directory as your source and use the usual submission instructions for submitting the assignment.  

Subject Computer
Due By (Pacific Time) 04/20/2014 06:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy