Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are to write a program that will read a string from the keyboard and determi

ID: 647993 • Letter: Y

Question


You are to write a program that will read a string from the keyboard and determine if that string Is a palindrome. A palindrome is a word sentence that is spelled the same forward and backward. Ex. Madam I?m Adam You should make use of a stack to perform the check. Read the Input string and push each character to the stack. You should eliminate spaces and punctuation as you push. You can then pop each character off of the stack and compare it to the original string. Again, you should skip over spaces and punctuation for this to work properly.

Explanation / Answer

if(str[i]>=65&&str[i]<91 || str[i]>=97 && str[i]<123)

if(str[i]>=65&&str[i]<91 || str[i]>=97 && str[i]<123)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote