> java Program23 wordFile 225where the first argument is the name of the file and the second is the desired score. If the user does not provide arguments when calling the program, that is, they invoke the program with the command:
> java Program23prompt the user for the the name of the file, then for the desired score.
The program then prints out all words with that score from that given file. To assign a score to word, first assign a number to each letter: 1 to A, 2 to B, 3 to C, etc. Then, the score of the word is the product of the numbers assigned to the letters. For example, the score of cab is 3*1*2 = 6.
For example, if the file wordy contains:
| cab | 
| bat | 
| batty | 
| cat | 
| cats | 
| mat | 
| mate | 
| gate | 
| agate | 
> java Program23 wordy 700The program prints:
The following words have a score of 700: gate agate
Submit this as program 23 using the electronic submission. Please call the file (and the class) Program23.
Hint: To assign a number to each letter, use the method indexOf on the string "*ABCDEFGHIJKLMNOPQRSTUVWXYZ". For example,
	"*ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf("C")
	
	is 3.  See Section 11.6, p 468 for an example of using
	indexOf.
	(See NPR's Weekend Edition for a related puzzler (28 March 1999)).
Follow the javadoc comments for this applet when setting up your program.
Submit this as program 24 using the electronic submission. Please call the file (and the class) Program24. Include an HTML file called Program24.html to display your applet.
Hints: