Question: Assignment Instructions Write a Python program (called Analysis.py) that reads in a text file (called storyIn.txt) and performs analysis on the words and letters of

 Assignment Instructions Write a Python program (called Analysis.py) that reads ina text file (called storyIn.txt) and performs analysis on the words andletters of the file. The files will contain any number of lines,

Assignment Instructions Write a Python program (called Analysis.py) that reads in a text file (called storyIn.txt) and performs analysis on the words and letters of the file. The files will contain any number of lines, containing any number of words (similar to essays or documentary descriptions in any natural language.) You can assume that the file contains only words that contain alpha-numeric characters plus parenthesis (round brackets), commas, periods, exclamation points, question marks, colons, semi-colons, space characters and new line characters. None of the words contain: commas, periods, exclamation points, question marks, colons, semi-colons, space characters and new line characters so they can be ignored. Any blank lines (that may be in the input file) should also be ignored. The task is to determine and output the following to a file (called analysisOut.txt) the number of total words, the frequency of occurrence (i.e., the number) of the words (in all lower-case), presented in ascending alphabetic order, the number of uppercase letters, the number of lowercase letters, the frequency of occurrence(i.e., the number) of each alpha-numeric letter, presented in ascending alphabetic order When counting words, all words containing any combination of upper and lower case letters should be considered the same word. When counting letters, however, upper and lower case letters are considered different. If, for example, the input file has the following data: The (quick) brown fox jumps over tHe lazy dog? 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!