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 Figure 1 below.

Cup – a container from which we drink.

Library – a collection of books

School – a place of learning

- any group of fish

Figure 1.

One more requirement, from time to time words become obsolete. When this happens, such word must be removed from the dictionary. Your program must account for this also.

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.

  1. 👍 0
  2. 👎 0
  3. 👁 164
asked by james
  1. The best way to get answers for this type of projects is to go as far as you can, and ask specific questions for directions, or for debugging information.

    You have submitted information as though we are a homework service, which we are not.

    If you break up your problem into smaller pieces, showing your efforts in between, you are likely to get help.

    I suggest you start with your pseudocode, or actual coding, depending on your habit, or what you're instructed to do. Post what you have for answers when you get stuck.

    1. 👍 0
    2. 👎 0
  2. Ok

    1. 👍 0
    2. 👎 0
    posted by james
  3. Excellent, hope to hear from you soon!

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. computer

    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

    asked by james on July 29, 2011
  2. C++ programming computer

    I'm having some trouble trying to program these problems and putting them into the main function. Please help me by giving some advice or website that offer good information for me. The questions are below here: 1. Write a

    asked by Milo on April 13, 2011
  3. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

    asked by Matt on April 3, 2013
  4. programming

    write a c program that accepts a name as first name last name but displays the name as last name first name in the output

    asked by amy on July 16, 2011
  5. computer

    write a program that accepts & displays the pricing of 10 different items from a suppermarket

    asked by maigua on November 7, 2016
  6. Computing

    Write a program that displays the following menu: 1 = Square 2 = Circle 3 = Ellipse 4 = End program When the user selects a shape from the menu, the program should ask for any necessary data, either: the length of the square’s

    asked by CAMMY on November 18, 2012
  7. programming concepts

    Write a menu driven program using a conditional structure.

    asked by Anonymous on August 3, 2013
  8. CIS

    Design a flowchart using Visual Logic for the following: A program that accepts a candy name (for example, “ chocolate-covered blueberries”), price per pound, and number of pounds sold in the average month, and displays the

    asked by Anonymous on May 4, 2012
  9. Pseudocode programming

    I need a currency conversion application. It does not have to be written in an actual programming language, just the pseudocode as well as the elements listed below. Complete requirements analysis Design Verification Validation

    asked by Rick on July 24, 2007
  10. programming logic and design

    Using a flowchart write a program that does the following: •Create the logic for a program that accepts input values for the projected cost of a vacation and the number of months until vacation. Use both values to totals that

    asked by mello on February 18, 2016

More Similar Questions