Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

Students also viewed these Databases questions

Question

What is the purpose of the blind copy of a purchase order?

Answered: 1 week ago

Question

Test a check out request for an empty shopping cart.

Answered: 1 week ago