Use Eclipse Java program!!!
Concepts tested by this program:
You will be creating a program that will read from a file. For each sentence, the word with the largest Scrabble value and the Scrabble value for that word will be displayed.
The Scrabble values are as follows:
Comparataor - ScrabbleComparator
Create a ScrabbleComparator that implements Comparator<String>. The compare will sort the strings in reverse order by Scrabble Value. The largest value will be first.
Data Structure - TreeSet. Construct the TreeSet with the ScrabbleComparator. Use for getLargest. All words are added to the TreeSet. The largest is retrieved with the first method.
Data Manager/Utility classes
If the user selects the Read Text File button, use the JFileChooser to ask the user for the location of the text file to be read and then display the contents of the file in a table. Use a table so that a row of the table can be selected.
If the user selects the Largest Scrabble Value button, display the largest word and the scrabble value for each sentence.
If the user selects a row in the table and the All Scrabble Values in Sentence button, display all the words in that sentence with their scrabble values. If the user selects the Sort in Scrabble Order button, the words of the sentence and their scrabble values are displayed with the largest scrabble value word first.
You can assume that the files are correct and there is one sentence per line.
Disable Largest Scrabble Value button until user Selects Read Text File Button.
Read Text File
Use JFileChooser to allow user to select text file. Read from text file and place into Table.
Enable the Largest Scrabble Value Button
Disable All Scrabble Values in Sentence button until user selects a row in the table.
Results of Largest Scrabble Value:
When user selects a row in the table, the All Scrabble Values in Sentence button becomes enabled
Results of All Scrabble Values in Sentence:
Sort in Scrabble Order button becomes visible.
Results of Sort in Scrabble Order:
Javadoc for user created classes: 4 pt____
Test Cases 4 pt____
JUnit Test Class
Implement the student test methods of the ScrabbleUtility
UML Diagram 2 pt ____
Internal class documentation (within source code) 5 pt ___
Class description using Javadoc
Author’s Name, Class, Class Time
Methods commented using Javadoc
Program user interface
Clear to user how data is to be entered 1 pt____
Output is easy to understand 1 pt____
Public tests (those I gave you and your additions) 5 pt ____
Private tests 5 pt ____
returns the largest String in the TreeSet
for each of the words in the string
by ScrabbleValue, returns pairs of words and scrabble values for
each of the words in the string
Total 50 pt _____
Assignment Writing Help
Engineering Assignment Services
Do My Assignment Help
Write My Essay Services