Create three classes for the linked list

Assignment Help Basic Computer Science
Reference no: EM131056118

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 which contains all the functionality of the linked list, and classes called UnsortedWordList 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.

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: clear the text areas and then display only the nouns on the lists.
Display > Verbs: clear the text areas and then display on the verbs on the list.

The input file will be in the following format: one word per line followed by either N or V in parenthesis: apple(N) peach(N) eat(V) .

Reference no: EM131056118

Questions Cloud

Identify the functionality of key code components : Identify the functionality of key code components such as what the functionality of "system.out.println" is along with other code components such as the calendar code and the semicolon.
Social media and feminism : Expand and be more specific on the example (on the hashtag example). What the hashtag is about? And how is the hashtag affected
Calculate net profit margin ratios using financial statement : Next, calculate the 12/31/15 and 12/31/14 ratios using the financial statements you printed, including all of the following:
Discuss it strategy that o-reilly media chose to implement : Discuss the IT strategy that O'Reilly Media chose to implement and whether you believe that it successfully addresses the goals of IT governance and business alignment. Has O'Reilly Media considered all of the stakeholders in this scenario? What c..
Create three classes for the linked list : The input file will be in the following format: one word per line followed by either N or V in parenthesis: apple(N) peach(N) eat(V) .
Thermodynamic data for an unknown inorganic complex : Consider the following thermodynamic data for an unknown inorganic complex at constant pressure. At what temperature does sublimation occur? Please answer in units of°C
Tennatite with a mass : Tennantite is an ore of copper with a formula of Cu12As4S13. How many moles of copper are in tennatite with a mass of 19850 grams?
Natural abundance of the lighter isotope : There are two stable isotopes of gallium; there masses are 68.9257 amu and 70.9249 amu. If the average atomic mass of gallium is 69.73 amu, what is the natural abundance of the lighter isotope?
How many carbon atoms are in the hope diamond : The Hope Diamond weighs 45.52 carats. How many moles of Carbon are in the Hope Diamond if 1 carat weighs 200 mg? How many carbon atoms are in the Hope Diamond?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Most important element to ensuring high availability

Give your opinion on what you believe to be the most important element to ensuring high availability on an enterprise network. Explain your rationale.

  Twenty-four voice signals

Twenty-four voice signals are to be multiplexed and transmitted over twisted pair. What is the bandwidth required (in bps) if synchronous time division multiplexing is used, if we use the standard analog to digital sampling rate, and if each sample i..

  Propose a modification to the delivery mechanism

Propose a modification to the delivery mechanism that does allow for reversibility. Your mechanism should not require giving all switches globally unique names.

  Voice over protocol

Voice Over Protocol

  Information that is widely available on the web

What are the benefits of using search engines, such as Google, Yahoo!, or Bing? What are some of the limitations and dangers of using information that is widely available on the Web?

  Find the distance from the point

find the distance from the point (1 2 3) from each of the following 1) the line of intersection of the plane p1 x-2y-3z=4 and p2 ; 2x-y +5z=1 2) the plane perpendicular to the ( X+2)/3= (Y-1)/-2 = (Z-3)/-1

  Display the sum and average of the numbers

Write a Java program that inserts 25 random integers ranging from 0 to 100 into an ArrayList in ascending order. The program should then output the numbers and display the sum and average of the numbers.

  Write the student info and processed data

Implement the following algorithm in C# using WFA GUI. Write the student info and processed data (student name, exams, avg and grade and ...) to student database

  Which item in the stack is to be removed first

Which item in the stack is to be removed first?

  What value would be returned from call to its size() method

If a collection stores 5 objects, what value would be returned from a call to its size() method?

  Computer discussion homework

While it is understood that the CIO should set the example for the IT organization, determine the top three things that the head of IT should be doing to improve the skills of the IT staff.

  Image for further instructions on cloud computing

Image for further instructions on Cloud Computing

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd