java

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. 👍
  2. 👎
  3. 👁
  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. 👍
    2. 👎
  2. Excellent, hope to hear from you soon!

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. ELA

    Figurative language is language that (1 point) A. are words that have multiple meanings. B. is made up of words that contradict each other. C. goes beyond the words’ literal meanings. D.explains the literal meaning of words.

  2. language arts

    Can someone please check my answers? 1. Which of the following describes a pun? the use of a noun to serve as the verb in a sentence a playful use of synonyms to achieve humor in writing the final sentence of a joke that contains

  3. english

    1. Choose the answer that displays the correct spelling of the plural form of the words in parentheses. How many (praying mantis) will we have to import to fight the (grasshopper)? 2. Choose the answer that displays the correct

  4. math

    A student studying for a vocabulary test knows the meanings of 12 words from a list of 26 words. If the test contains 10 words from the study list, what is the probability that at least 8 of the words on the test are words that

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

  2. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  3. OOP(netbeans)

    Write a program that accepts a person’s weight and displays the number of calories the person needs in one day. A person needs 19 calories per pound of body weight, so the formula expressed in Java is Calories = bodyweight * 19;

  4. computer

    Write an algorithm for a program that accepts a set of numbers and finds the smallest among them and computes the sum of the numbers accepted. The program stops when the user enters number 999. Convert the algorithm into flowchart

  1. English

    Consider the compound words blackboard and outfox and the relationship of their meanings to the meanings of the words that make them up. In what ways do these compound words show a degree of nonarbitrariness in their form-meaning

  2. CIS

    Chocolate Delights Candy Company manufactures several types of candy. Design a flowchart using Visual Logic for the following: A program that accepts a candy name (for example, “ chocolate-covered blueberries”), price per

  3. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having

  4. maths HELPPP

    Y= AX + B Write a program for the calculator which: • Generates and displays suitable integer values of A and B: • Requests the student to input the coefficient of Y and the constant term in the re arranged formula; • Checks

You can view more similar questions or ask a new question.