Java TOPIC I03 – FILE I/O PROJECT LESSON WORK OPTION 1 – SCRABBLE Ask the user for a sequence of letters and provide
a list of all words that can be written with those letters. (This is challenging!) You will have to make use of the dictionary file again. Sample
output 1: Please
enter letters. Words
that can be made with e i l m s are: miles slime smile Sample
output 2: Please
enter letters. repaint Words
that can be made with a e i n p r t are: painter pertain repaint Rubric
Notes ·
When re-listing letters, you must list them in
alphabetical order. ·
You must support input that contains upper case
letters (by simply making them lower case letters.) To
Try: A few amusing ones to try once your program works: ·
Elvis ·
Silent ·
VoicesRantOn ·
MoonStarer ·
SwearOft OPTION 2 – ENDING IN … This option is easier and will get you a maximum
mark of 75%. Your program is to ask
the user for an ending and then go through the dictionary file and list all
words that have a matching ending. Sample output 1: Enter a word ending. unto Words ending with unto are: conjunto hereunto junto punto thereunto trapunto unto whereunto Sample output 2: Enter a word ending. unto\5 Words ending with unto of length 5 are: junto punto RUBRIC
NOTES ·
You
must include the option to use the backslash to specify the length of desired
words (such as in Sample Output 2). ·
The
desired length can be 10 or greater.
So you have to consider that. ·
User
input can have upper case letters that you will simply switch to lower case
letters. |
|