Write a program that either accepts input via stdin or from the command line. It will then unscramble the words, printing out the unscrambled version of each word.You get a text file containing every word (most of them) in the English dictionary to use. (Here is the file: Word List, and you can either use it from the web or save it as a text file and use it from there.)
Inputs to measure the score:
bbuleb lwrfoe kaec rtawe cokr kmli pcaee
bubble flower cake water rock milk peace
bubble fowler cake water cork milk peace
(Word case doesn't matter, and please post your score and outputs along with your code!)
Score = (Amount of correct outputs) x (100 / (Code Length))
The code with the highest score wins!
Edit: This is my first post, please be kind!
say 'bubble flower cake water rock milk peace'scores hard-to-beat 213 and yet isn't very interesting. \$\endgroup\$