osmium said:
But it is not a result of running the program you were asked to write. The
program you write will not produce any upper case letters.
Looking back at it, it seems that instead of checking whether or not the
text is a palindrome, the example that he gave just toggles the case
(i.e., upper case or lower case) of each letter.
If you require the user to type only letters as input, it will be easier and
get you started in a more painless fashion. Get clarification as to what is
expected in the punctuation area, and change what you have later on, if
necessary.
I agree, he will need to find out whether punctuation should be included
or not. Most of the times that I have seen people refer to palindromes,
they only consider the order of the letters, and not the spacing or
punctuation, but his requirements may be different. However, based on
(my) common convention, it would indeed be a palindrome, but it would
not be one if punctuation/spacing is significant.
The decimal point in your sample looks like magic, not a
computer program.
See my first sentence.
To JT,
Please double-check your definition of "palindrome".