Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Specifics: You must use Python3 to code your solution. Your program must perform a frequency analysis of the text and display the following: . The

image text in transcribed

Specifics: You must use Python3 to code your solution. Your program must perform a frequency analysis of the text and display the following: . The input text The total number of characters from the input file Individual characters . O 0 . o The frequency of occurrences for every letter. Your output does not have to include letters that have 0 counts, although you can include it (depending on structure used). The order of this list does not matter The top 5 most frequently occuring ciphertext letters and number of occurrences. Bigrams Display the list of all bigrams and number of occurrences. The order of this list does not matter (sorted or unsorted) Display the top 5 bigrams and number of occurrences Trigrams Display the list of all trigrams and number of occurrences. The order of this list does not matter (sorted or unsorted) Display the top 5 trigrams and number of occurrences O . O O You should only use Python's included libraries (e.g., string, math, collections and not external libraries like cryptography) Input: Your program should prompt the user for the name of the input file. The input file will contain only letters - no punctuation and no space in-between words. Line breaks may be included, so remove them when reading from the file (.strip () )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions