Question: Write an automated censor program that reads in the text from a file and creates a new file where all of the four- and five-letter

Write an automated censor program that reads in the text from a file and creates a new file where all of the four- and five-letter words have all but their first and last characters replaced with *. For instance, dart would be replaced by d**t and slime with s***e. Words of other lengths should be unchanged. You can ignore punctuation, and you may assume that no words in the file are split across multiple lines.

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!