"JT" <ja*****@gmail.com> wrote:
Write a program that read a line of text, changes each uppercase letter
to lowercase and places each letter both in a queue and onto a stack.
The program should then verify whether the line of text is a palindrome
Output:
Please enter a line of text
I am A.I
i AM a.i
This is a palindrome
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. The exercise is
such that if you start writing you will not run into any blind alleys and
have to discard a significant amount of work. So start writing and when you
get stuck, *then* post a question.
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. The decimal point in your sample looks like magic, not a
computer program.