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

  Analysis of a group of weight measurements

Prepare a program that takes an input weight and puts the correct value - An analysis of a group of weight measurements involves converting a weight value into an integer category number that is determined as given:

  Create a college course to display the course data

Create a CollegeCourse that does not include the lab fee. Then display the course data. Save the files as CollegeCourse.java, LabCourse.java, and UseCourse.java.

  Advantages and disadvantages for windows login

The Windows login can be a user or a group with users defined to the group. What do you think the advantages and disadvantages are for each type?

  Programming concepts

The assignment problem is straightforward. All necessary details have been supplied. The solution of the problem will be straight line code which will use the programming concepts and strategies covered in Workshops 1-3. The subgoals are:

  Write a program that reads the data from the file

Write a program that - Reads the data from the file into an array of structure when the form is loaded and When "Display Hits" is clicked, based on the team selected from the list, displays the players from that team and their hits. The players are..

  Write program two functions to solve problem of university

Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members.

  Program-dynamically check store-s inventory-central office

You are the outside consultant to large chain of grocery stores. Store's management would like to dynamically check store's inventory from central office.

  Design and run a program that takes a numerical score

Design and run a program that takes a numerical score and outputs a letter grade. Precise numeral scores and letter grades are listed show.

  Program to print smallest number and largest number entered

Write C++ program; LargestSmallest.cpp; which inputs six real numbers from user and determines and prints smallest number and largest number entered.

  Describe program which converts fahrenheit to celsius

Create the following program which converts Fahrenheit to Celsius. Your program must have the following functions: Read integer Fahrenheit temperatures from the user. You need to check whether the input is the correct one or not. If the user enters..

  Create a directory called registration

All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.

  Do the second half as a completely separate loop

Do the second half as a completely separate loop. Remember you'll print out "n" number of stars on a line the same way whether you are doing the top half or the bottom half

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