From time to time words become obsolete

Assignment Help Basic Computer Science
Reference no: EM13165811

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.

Reference no: EM13165811

Uppercase and one lowercase letter

If the passwords don't match or the rules are not fulfilled, prompt again. Needs to include a method that checks whether a password is valid. The password must be 8 characte

New century develop a new information system

New Century Wellness Group offers a holistic approach to health care with an emphasis on preventive medicine as well as traditional medical care. In your role as an IT consu

Form of broadcast through the air

You may not have heard of the radio as a media before this course, but it is, essentially, any data communication that takes the form of broadcast through the air. How do ea

What types of services are included in sub-acute care

1. List 5 reasons why ADL's are relevant and important in our society today 200 words 2. What types of services are included in sub-acute care? What Is the Difference betwee

Budgeted cost of work performed

The following data is received from your contractor: Budgeted Cost of Work Performed (BCWP) = $200 Budgeted Cost of Work Scheduled (BCWS) = $300 Actual Cost of Work Performe

Compare the it field with at least one other field

In relation to the IT field, what benefits and problems do you foresee in using e-mail and text messaging as the main source of communication? Compare the IT field with at l

Write java non-recursive algorithms and methods to determine

Write java non-recursive algorithms and methods to determine: the number of nodes in a binary tree, the sum of contents of all the nodes in the binary tree, the depth of a b

Benefit from implementing locking methods

Describe how locks could be used in order to qualify data transactions and enhance concurrency control. Suggest at least two business scenarios that would benefit from im


Write a Review

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd