Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started