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 advantages of external css and internal css

Write down the advantages of external CSS compared to internal CSS? Describe conditions in which each is suitable type.

  Q1determine which product characteristics are significant

q1determine which product characteristics are significant and what would you recommend for the next investigative

  Compare and contrast object-oriented languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of: Programmability Maintainability Performance Development tools Explain the use of scripting languages, such as JavaScript, PHP,..

  Write a bioperl-based script

Write a BioPerl-based script ("pick-by-id.pl") to extract sequences by id. It will emulate the "blastdbcmd -db -entry" command. Use "GBB.pep" and "BBA15" as the two arguments.

  Develop a functional c program that implements a design

Develop a functional C program that implements a design and create a C program that declares and uses strings.

  Write script in fedora to automate complex system task

Write a script in fedora 10 that will automate a complex system task. The task I have chose is one that will determine the processes that are consuming system resources.

  Design and algorithm that compute numbers of married men

Design and algorithm that will read through the file and compute the numbers of married men, single men, married women and single women.

  Create console program to prompts user to enter revenue

Create the console program which: Prompts user to enter revenue and expenses computes net income Outputs revenue, expenses and net income.

  Design logic for application for company-breakdown-payroll

Design the logic for an application for a company that wants a report containing a breakdown of payroll by department.

  Computing return value after execution of program

Compute return value of Antony after its execution?

  Write program to use text file to create relative file

Write a program that uses the text file to create a corresponding relative file. Translate the stock code to an appropriate relative record address.

  Write the program which approximates pi using series

Your problem is to write the program which approximates pi using above series. Allow the user to specify the number, n, of terms to be used.

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