Question: Java// I have already done my code I just need to adjust it so that I dont have any errors. I attached a photo of

Java// I have already done my code I just need to adjust it so that I dont have any errors. I attached a photo of the error I am getting.Thank You!
Java// I have already done my code I just need to adjust
it so that I dont have any errors. I attached a photo
of the error I am getting.Thank You! I attached photos of the
different files educate.txt, goal.txt, and happy.txt. 9.10 LAB: Thesaurus Glven a set
of text files containing symonyms for different words, complete the main program
to output the synoryms for a specific word Each text fite contains
I attached photos of the different files educate.txt, goal.txt, and happy.txt.
synonyms for the word specified in the files name, and each row
within the file lists the word's synonyms that beg in with the
same letter, separated by a space. The program reads a word and

9.10 LAB: Thesaurus Glven a set of text files containing symonyms for different words, complete the main program to output the synoryms for a specific word Each text fite contains synonyms for the word specified in the files name, and each row within the file lists the word's synonyms that beg in with the same letter, separated by a space. The program reads a word and a letter from the user and opens the text file associated with the input word. The program then stores the contents of the text file into a two dimensional aray predefined in the program. Finally the program searches the array and outputs ali the synonyms that begin with the input letter one synonym per line, or a message if no synonyms that begin with the input letter are found Hints: Use ASCII values to map the row index of the array to the first letter of a word when storing the synonyms into the array, Ex Index 0 . to an 'a', index 25 to a z '. Assume all letters are in lowercase. Ex. If the input of the program is: edreate the program opens the file educate: txt, which contains. brainuash brief civilize coach cultivate develop disclpline de1li edify enlighten exercise explain toster improve indoctinate inform inetruct mature purture then the program outputs: Ex. If the input of the program is: then the program outputs: No synonyms for edicate begin with a. \begin{tabular}{l|l} We \\ ACtiviry & 9.10.1 LAB: Thesourus \end{tabular} 5/10 0/2 1.Compare output Output is nearly correct, but whitespace differs. See highlights below. Input Your output Expected output Your output joyful joyous jubilant Expected output \begin{tabular}{l} joyfulh \\ joyoush \\ jubilant. \\ \hline \end{tabular} 4.Compare output A 2/2 Your output No synonyms for happy begin with 3 . 5 Compare output A 0/1 Output is nearly correct, but whitespace differs. See highlights below. Special character legend Input goal o Your output objective Expected output objectives brainwash brief civilize coach cultivate develop discipline drill edify enlighten exercise explain foster improve indoctrinate inform instruct mature nurture rear school train tutor pbjective goal.txt 2) blessed blest blissful cheerful contented delighted ecstatic elated glad joyful joyous jubilant lively merry overjoyed peaceful pleasant pleased thrilled upbeat

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!