Question: WANT A PYTHON CODE FOR MY TEXT ANALYSIS (BOOK).. REQUIREMENTS ARE GIVEN. : Processing . Output Must be able to process a text file as

WANT A PYTHON CODE FOR MY TEXT ANALYSIS (BOOK).. REQUIREMENTS ARE GIVEN.WANT A PYTHON CODE FOR MY TEXT ANALYSIS (BOOK).. REQUIREMENTS ARE GIVEN.

: Processing . Output Must be able to process a text file as input: Must be able to count the: o total # of words o total # of occurrences for each word. o total # of characters in the text document. o total # of blank spaces in the text document. Must be able to calculate the percentage of blank spaces as: o total # of blank spaces divided by total # of characters, multiplied by 100. Must implement exception handling in two areas: when opening the text file for reading and, when writing the output file. Must create an output text file for the chosen text formatted to the client's requirements named "-PartAAnalysis.txt". Must advise the user when: processing has completed AND the name/location of the output file. Must advise the user when: o an exception has occurred AND o the type of exception Text analysis output must be clear and easy to read Must include appropriate headers and data for: Name of text: Total Non-blank Character Count: Total Blank Character Count: . O O . Client Text Format Requirement o O Percentage Blank Character: Total Word Count: Word, Count: (each word and count is on a separate line) Les Miserables.txt CST2101_Project_1.pdf TaleOfTwoCities.txt E3 (1) (3).pdf Show all x

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!