Writing java program which can develop anagrams

Assignment Help Basic Computer Science
Reference no: EM13829608

Problem:

Anagrams: 

An anagram is a rearrangement of the letters of a word or phrase into a new word or phrase. Some of them can be quite amusing or apt. For example:

  • ok state cowboy = wacky toe boots 
  • live orange = regain love 
  • video games = gives a demo 
  • dr dave cline = devil dancer, evil cad nerd 

Instructions: 

1. Write a console application that prints out a list of all the anagrams from a phrase, with one anagram on each line.

2. Two pieces of input are required, (1) the dictionary file, and (2) the word or phrase to be rearranged. Your program needs to be able to use different dictionary files and query phrases based on keyboard input, either as command line arguments or as prompted by the program.

3. Create all of the anagrams from the input phrase, and print them out, one per line. Only generate each anagram once.

4. Generate the anagrams in order in terms of number of words. That is, generate all anagrams with 1 word, then all with 2 words, then all with 3, and so forth.

5. Test out your program on a number of phrases to find some good anagrams.

6. Optional: be able to exclude certain words, or demand that some words be part of the anagram.

Question checklist: 

  • Write a console program to generate anagrams. 
  • Let the user input both the dictionary file name, as well as a phrase. 
  • Generate anagrams in order from smallest to largest number of words. 
  • Come up with some good anagrams and write them down to share with the class. 
  • Make sure the programs compile and run from the command line without modification. 

Summary

This question is from Computer Science and it explains about writing Java program which can develop anagrams by using dictionary file attached.

Reference no: EM13829608

Questions Cloud

Developing an application for internet : Your company developed an Order Entry Intranet application for its sales personnel to enter orders for processing on behalf of their customers.
What is the net present value of each of the projects : Calculate the IRR for each of the projects. If the discount rate for all three projects is 10 percent, which project or projects would you want to undertake? What is the net present value of each of the projects where the appropriate discount rate is..
Clarify idea of marriage between close family members : The problem is belongs to Sociology and the problem clarify the idea of marriage between close family members should be encouraged or discouraged.
Statement review makes it lawful for a man to kill a thief : Statement Review makes it lawful for a man to kill a thief
Writing java program which can develop anagrams : An anagram is a rearrangement of the letters of a word or phrase into a new word or phrase. Some of them can be quite amusing or apt. For example:
Class hierarchy to represent geometric figures : Design, build and test a class hierarchy to represent geometric figures including circles, triangles, squares, rectangles, polygons, and hexagons. Implement just minimum number of methods per each class to reflect a distinctive characteristic of a..
Statement review the dictum that truth always triumphs : Statement review the dictum that truth always triumphs
Java game development jump it : The game "Jump It" consists of a board with n positive integers in a row, except for the first column, which always contains zero. These numbers represent the cost to enter each column. Here is a sample game board with n set to 6:
Write an essay on copying of computer software : The problem is belongs to Sociology and the problem is describe about writing an essay on copying of computer software and its de-criminalization.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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