Posted by james on Thursday, July 28, 2011 at 6:39pm.
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
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 - MathMate, Friday, July 29, 2011 at 6:33pm
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 - james, Saturday, July 30, 2011 at 12:13am
- java - MathMate, Saturday, July 30, 2011 at 7:08am
Excellent, hope to hear from you soon!
Answer this Question
computer - Write a menu driven program that either accepts words and their ...
reading - in a dictionary which are the guide words and which are the entry ...
C++ programming computer - I'm having some trouble trying to program these ...
Java - create a java program that accepts students names, and test scores from a...
computer science - Hey I have three questions with creating these methods can ...
Computer Science JAVA FUNCTIONS - Write a Function You will be given one of the ...
computer science - Hey I have three questions with creating these methods, ...
Computing - Write a program that displays the following menu: 1 = Square 2 = ...
Programming and Design - Draw the hierarchy chart and design the logic for a ...
Programming - How would the flow charts and pseudocode look for this? The Metric...