Question: 10 112 Spring. 2018 Extra Credit Assignment 1 Assignment Overview This program focuses on the use of strings, lists, files and their various operators. It
10 112 Spring. 2018 Extra Credit Assignment 1 Assignment Overview This program focuses on the use of strings, lists, files and their various operators. It also incorporates a number of things we have learned about loops, if statements and functions. This extra credit assignment is worth 50 points, and must be submitted before 11:59 PM on Thursday, 17 May Background An Internet meme made the rounds in the early 2000's concerning some quirks about how human beings read a sentence. Below was the paragraph that was used in the meme. Can you read it? Can you tell what is "wrong" with the words? Aoccdrnig to rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the 1tteers in a wrod are, the olny iprmoetnt tihng is taht the frist and 1sat 1tteer is at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae we do not raed ervey 1teter by itslef but the wrod as a wlohe If you keep the first letter and the last letter of a word in their correct positions, then scramble the letters in between, the claim was that people could still read the words. It was, however, not a legitimate research claim as the meme might lead you to believe. In fact, the process of scrambling as indicated above does not work for words that have a longer length. The web site http://www.balancedreading.com/cambridge html shows some counter examples (as well as debunking the research claims) for this kind of reading comprehension. We are going to imitate the scrambling process on some files of English text: some with long words and some without, to test the claim. Program overview: You will write a program that: prompts for the name of a file of English text to read in and a file to write out your results reads each line of the file performs the scrambling operation on each word of the line, preserving the non-word . o constant prompting required for the file to be read . * features (see details below) outputs the scrambled line to the indicated output file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
