Ace My Grades
Sign In
Sign In
Reset Password
Register
  • Home
  • Tutorials
    • Accounting
    • Business
    • Law
    • Finance
    • Health Care
    • Management
    • Science
    • Political Science
    • Computer Science
  • My Account
  • Contact Us
$21.00 $9.00
COP3XXX Assignment 5 | Complete Solution
William Thompson
5

Description

Write a menu driven program that either accepts words and their meanings, or displays the list of words in lexicographical order (i.e. as in a dictionary). When an entry is to be added to the dictionary you must first enter the word as one string, and then enter the meaning as separate string. A word may have more than one meaning, and may be entered at separate times. When this occurs, place each successive meaning on a separate line. This new meaning must be preceded by a dash. For example, if you enter the following words and with their meanings in the following order: Library, School, Cup, and School, then your output should be a display as shown in the fig.

Two other requirements:

  • From time to time words become obsolete. When this happens, such word must be removed from the dictionary.
  • Provide an option to reverse the alphabetical order of the list of words and their meanings.

Use the JOptionPane class to enter the information.

Use the concept of linked list to carryout this exercise. You will need at minimum the following classes:

  • A WordMeaning class that hold the name of a word and its meaning.
  • A WordMeaningNode class that creates the node of information and its link field.
  • A WordList class that creates and maintain a linked list of words and their meanings.
  • A Dictionary class that test your classes.

For the output, the program should produce two scrollable lists:

  • The current list of words and their meanings, and
  • The list of the deleted words. You need not list the meanings, just the words.

Text Box: Cup – a container from which we drink.<br /><br /><br />
Library – a collection of books<br /><br /><br />
School – a place of learning<br /><br /><br />
            -  any group of fish</p><br /><br />
<p>

Take This Course $21.00 $9.00

Lessons

COP3XXX Assignment 5 | Complete Solution

Take a course to view this content

Related Courses

$25.00 $18.00
CIS 333 | Lab 5 Answers | Complete Solution | Rated A+
William Thompson
3
$25.00 $18.00
CIS 333 | Lab 4 Answers | Complete Solution | Rated A+
William Thompson
3
$25.00 $18.00
CIS 333 | Lab 2 Answers | Complete Solution | Rated A+
William Thompson
4
$30.00 $21.00
CIS 333 | Week 8 Assignment 2 – Identifying Potential Risk, Response and Recovery | Complete Solution | Rated A+
William Thompson
5
Ace My Grades © 2021
  • Home
  • Checkout
  • Blog
  • Privacy Policy
  • Contact Us
  • FAQ