Text Scrambler, Beginner Programming Challenge |
![]() ![]() |
Text Scrambler, Beginner Programming Challenge |
Mar 15 2010, 05:55 PM
Post
#11
|
|
![]() Group: Administrators Posts: 2870 Joined: 14-July 05 From: USA Member No.: 3694 |
Sample runs... CODE >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely plbsosie for pleope to read tshi, do you tnhik? I am not cecvonind. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rllaey pliossbe for people to raed tshi, do you tnhik? I am not cecnivnod. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlleay plissobe for plpoee to raed tsih, do you tnhik? I am not cecnivnod. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlealy plbssoie for ppeole to raed tsih, do you tnihk? I am not cecivonnd. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it raelly pissoble for ploepe to read tihs, do you tihnk? I am not cenvnoicd. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it really plbissoe for plpoee to read tsih, do you tnihk? I am not ceinovncd. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlleay pisosble for ploepe to raed tihs, do you tihnk? I am not cenonvicd. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rllaey plbssoie for ppeole to read tihs, do you tnhik? I am not cecinovnd. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlealy plossibe for plpeoe to raed tihs, do you tnihk? I am not cecnivnod. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlealy plbossie for ploepe to read tsih, do you tnihk? I am not cecvonind. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlealy plisosbe for ppoele to raed tsih, do you tnihk? I am not cecnivnod. >./scrambler.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely plisosbe for plpoee to read tsih, do you think? I am not cecvnoind. Same "problem" as mine. Namely, notice the results for "this." It's output as "tsih," "tish," and the correct "tihs." -------------------- Is a rose bush wrong in its thorny self-adornment? Is fire truly bad when it engulfs mere material in beautiful flame? So it is with Siph0n... Click: Thar? Yes, right thar. |
|
|
|
Apr 23 2010, 06:35 PM
Post
#12
|
|
![]() Group: V.I.P. Posts: 339 Joined: 25-June 08 From: San Francisco, CA Member No.: 12208 |
Ahh, I see. Add a comma to the somepunct variable...
CODE somepunct='!.?,' CODE ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced."
Is it rlleay plisosbe for plpeoe to read this, do you tnihk? I am not ccnvonied. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlealy plissobe for pleope to raed tihs, do you tnihk? I am not cnivnoced. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlleay plbossie for plpoee to raed this, do you tihnk? I am not cecnivnod. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely plbssoie for ppeole to raed tihs, do you think? I am not ceivnoncd. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely plssoibe for pleope to read tihs, do you think? I am not cecnvonid. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely plbissoe for ppoele to read tihs, do you tnihk? I am not cecnivnod. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlaely pisosble for ploepe to raed tihs, do you tnihk? I am not cecnvnoid. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rllaey plbissoe for ploepe to raed this, do you tnihk? I am not cenivoncd. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlleay pbisosle for ploepe to read this, do you tnhik? I am not cecnovind. ./scramble.txt "Is it really possible for people to read this, do you think? I am not convinced." Is it rlleay pbisosle for plpoee to raed this, do you tnihk? I am not ceivnoncd. -------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 10th September 2010 - 03:01 PM |