P2Jumble - Computer Science I Program 2: Jumble Assigned:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science I Program 2: Jumble Assigned: 1/26/09 (Monday) Due: 2/4/09 (Wednesday 11:55pm over WebCourses) The Problem Lindsay plays the daily "Jumble" in the Orlando Slantinel. After she learns the permutation algorithm in her CS1 class, she gets a brilliant idea: she can write a computer program to solve the daily "Jumble"! Her idea is as follows: For each set of letters, simply create each permutation of them and check each of these permutations against the dictionary. Whenever one is found that matches, output it! Obviously, carrying this algorithm out by hand would be very tedious, but a computer program could easily solve the problem in very little time! Write a program that solves "Jumble." First, your program will read in the dictionary from a file called "dictionary.in" (This file will be provided for you.) This file will contain English words in alphabetized order. (Thus, there is no need to sort these words, you can store them already sorted as you read them in.) You will read the rest of your input from the file "jumble.txt". This file will contain a list
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

P2Jumble - Computer Science I Program 2: Jumble Assigned:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online