Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python code generate a program that scrambles the letters of each word on a file of text. The first and last letters of each

Using python code generate a program that scrambles the letters of each word on a file of text. The first and last letters of each word need to remain the same and the inner letters should be scrambled. Only words longer than three letters should be scrambled. Capitalization must be preserved. You are required to deal with punctuation that comes at the beginning or end of a word (period, question mark, etc.). Keep the original paragraph format as it is on the original file text. The scrambled text should be printed to the screen. You need to display the longest word(s) encountered along with its scrambled version. If there are two or more they all need to be displayed. For any word(s) that was encountered 5 or more times, you need to output a line with the word, the number of times it occurs in the text and all the ways it was scrambled ([word] occurs [#] times and was scrambled as: ...).

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

00 00 The value of I= 0 0 1-* ex*e=v*dx dy

Answered: 1 week ago