Question: Write a Java program that will do the following Create three classes for the words: An abstract class called word, a class called Noun that

Write a Java program that will do the following Write a Java program that will do the following Create three classes

Create three classes for the words: An abstract class called word, a class called Noun that inherits from Word, and a class called Verb that inherits from Word. The actual word is stored in class Word. The classes noun and verb should have different toString methods the return the word with either "(N)" or (V) appended. Create three classes for the linked list: An abstract class called WordList (as in project 2) which contains all the functionality of the linked list, and classes called Unsorted WordList and SortedWordList which inherit from WordList. Each of these two classes should have an insert method that adds a new word in the appropriate position in the list. The GUI should now have two TextAreas: the one on left showing the contents of the unsorted list, and the one on the right showing the contents of the sorted list. The command window (ADD, DELETE, STOP) should function as in project 2. Create two menus for the GUI: One called File (with choices Open and Quit), and one called Display (with choices Nouns and Verbs). File > Open: open the selected file, fill the linked lists and display them in the text areas. File > Quit: exit the program. Display > Nouns; dear the text areas and then display only the noons on the lists. Display > Verbs: clear the text areas and then display on the verbs on list

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!