java

posted by .

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.

  • java -

    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.

  • java -

    Ok

  • java -

    Excellent, hope to hear from you soon!

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. English

    Hello, need help in answering this question what does race and ethnicity mean to you. The way I interpret the question, it wants YOUR opinion. You may gain some useful insight by going to www.dictionary.com and using both the dictionary …
  2. reading

    in a dictionary which are the guide words and which are the entry words?
  3. Grammar and Composition

    please check my answers: Write true if the statement is true, and false if the statement is false. 1. An Etymology is a type of dictionary. False 2. An unabridged dictionary is a condensed version. False 3. Etymologies appear in [ …
  4. 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 function …
  5. com 155

    Are these well written sentences? 1. When I am writing, my words need to construct a clear picture for my readers. 2. I will avoid using slang in my writing. 3. Using irrelavant words, is one error I need to change in my writing. 4.
  6. 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 word …
  7. english

    i usually go to dictionary. c o m for words but isnt com USA?
  8. English

    The main disadvantage of relying on a computer spell checker is that it A.takes too long to make the corrections B. can't distinguish between homonyms C.highlights all words that aren't in it's dictionary. D. may have too few words …
  9. critical thinking

    Which of the following is a false statement about a basic dictionary?
  10. Programming Java

    I am learning Java in programming right now. I need to write a program that should have an output like this: The program says "Type ten names". Then ten names sould be typed a person. Then the program chooses a random name from the …

More Similar Questions