Question: Using Python, two txt files, and the python program skeleton in https://1drv.ms/f/s!AnBgy5YKeyh4a8Qzv6HT_UxhyiQ Truncated Output What is a Cryptogram? A cryptogram is a word puzzle where
Using Python, two txt files, and the python program skeleton in
https://1drv.ms/f/s!AnBgy5YKeyh4a8Qzv6HT_UxhyiQ
Truncated Output

What is a Cryptogram? A cryptogram is a word puzzle where the letters have been changed via a substitution cipher. For instance, we might end up with something that looks like this IZXY TK YMJ HMFXJ- GD WFD BDQNJ MZGGFWI Where the solution is: Dust of the Chase by Ray Wylie Hubbard By figuring out that I->D , 2 -> U, X -> S , and so on. Goal We want to write a menu-driven cryptogram solver by analyzing the frequencies of the letters that appear in the cryptogram, and compare them to some the frequencies from an english text. We can then map the most frequent letter of the cryptogram to the most frequent letter of the english text, and the second most frequent letter of the Cryptogram to the second most frequent letter of the english text and so on. Let's say we analyzed a cryptogram's frequency to have letter -> frequency j 155 y117 f 106 and we have analyzed an english book's frequency to have letter -frequency e >179572 t-> 131343 a 121063 then we should create the following map cipher english -e f -a Now we know anywhere in the cryptogram we see a j, we know to print an Anywhere we see a f , we know to print an a . And so on. e . Anywhere we see a y , we know to print a t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
