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