Programming challenge 3 -easy- |
||
![]() ![]() Delta Cpt dopel Palindrome -- A word, phrase, verse, or sentence that reads the same backward or forward. For example: A man, a plan, a canal, Panama! Can you see where I am going with this? So this challenge will pick it up a notch to basic text and file processing while demonstrating the first lesson in code reuse. Requirements:
** -You may assume that each line of the input file is autonomous and can be treated individually during processing. -Ignore case and punctuation during comparison, but not for the results. ** Sample input: abc A man, a plan, a canal, Panama! Dr. Who ttt torchwood 0110 racecar I 20-02-2002 Was it a rat I saw? Sample output: A man, a plan, a canal, Panama! ttt 0110 racecar I 20-02-2002 Was it a rat I saw? PS, These challenges will not be in any order of complexity. Some will be easier and some will be harder. All challenges will teach at least one particular skill and many will build on skills previously covered. Replies:
|
||
| CyberArmy::Forum v0.6 Generated In 0.00751 seconds |