Write a menu driven program that accepts words

Assignment Help Programming Languages
Reference no: EM13882271

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

Cup - a container from which we drink.

Library - a collection of books

School - a place of learning

            -  any group of fish

Another requirement - from time to time words become obsolete. When this happens, such word must be removed from the dictionary.

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: EM13882271

Questions Cloud

Perfectly synchronize firms cash inflows and outflows : It has been argued that if one could perfectly synchronize a firm's cash inflows and outflows, short-term financial planning would be unnecessary. Do you agree? What actions can the firm's financial decision-makers take to reduce the degree of synchr..
Dividend payment-what is the dividend yield : The next dividend payment by Blue Cheese, Inc., will be $1.64 per share. The dividends are anticipated to maintain a growth rate of 8 percent forever. The stock currently sells for $31 per share. What is the dividend yield? What is the expected capit..
An ordinary annuity has an interest rate : An ordinary annuity has an interest rate of 10% and a future value of 80.00. What would be the future value of this same annuity, if it were an annuity due instead of a regular annuity? The future value of this annuity due is $
What is the delivered price of the living room set : Levin Furniture buys a living room set with a $4,700 list price and a 50% trade discount. Freight (FOB shipping point) of $45 is not part of the list price. What is the delivered price (including freight) of the living room set, assuming a cash disco..
Write a menu driven program that accepts words : 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).
Dividends are expected to grow at a constant rate : The Jackson–Timberlake Wardrobe Co. just paid a dividend of $1.10 per share on its stock. The dividends are expected to grow at a constant rate of 5 percent per year indefinitely. Investors require a return of 11 percent on the company's stock. What ..
How education is shaping social inequality : How education is shaping social inequality
Maintain constant growth rate in its dividends : Suppose you know that a company’s stock currently sells for $51 per share and the required return on the stock is 11 percent. You also know that the total return on the stock is evenly divided between a capital gains yield and a dividend yield. If it..
What tactics would you avoid and why : If you were launching a real campaign, what other tactics you would use and why (they may or may not be in the above list)? How will your promotion strategies address the diversity of your customer base? What tactics would you avoid and why

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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