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

  What the mac-layer addresses

How can you find out what the MAC-layer addresses and IP host addresses are of the server farm devices?

  The success of 24-bit digital audio technologies

3. A company noting the success of 24-bit digital audio technologies compared to earlier 16-bit digital audio technologies has decided to work on developing a 28-bit digital audio technology. a. Describe the type of signal conversion being utilized a..

  Explaining major provisions of telecommunications act

Write down some of the major provisions of the Telecommunications Act of 1996?

  Program that will accept a real number

Create a program that will accept a real number from the user and then display its whole and fractional parts. (For example, if the input is 5.32, the outputs should be the integer value

  Simulate the operation of a simple robot

Write a program to simulate the operation of a simple robot . the robot moves in four directions :forward, right,left. the job of the robot is to move items and place it in the right slots in each station

  Which served as a point-of-sale cash register and terminal

ABC was launched as a retail dive shop with 10 employees in Turkey by Mr Beans. As a small business owner, Beans wanted to offer the e-commerce capabilities of a large firm using a small company's budget. Within a year, he had installed an Ethernet L..

  What max number of dimensions a c++ multidimensional array

What is the MAX number of Dimensions for a C++ multidimensional array ?

  Write your function so that it returns an array of dice

Write your function so that it returns an array of Dice structs. Each element in the array should be set to indicate one of the possible ways of rolling the sum. The last element in the array should be the special "sentinel" value where both die1 and..

  A discussion of the information used in the system

A discussion of the information used in the system

  Dscribe implications of e-publishing they effect way we read

Dscribe implications of e-publishing as they effect way we read and understand content. Describe e-books, print on demand, copyright and XrML and use of multimedia.

  Write method "design" which takes integer size as parameters

Write the method "design" which takes an integer size as parameter, and prints a "design square" with the following characteristics:

  Write a documented argumentative essay

Write a documented argumentative essay

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