Question: Write a program called palindrome.cpp that allows the user to enter a word. It then prints the word in reverse, then informs the user whether

Write a program called palindrome.cpp that allows the user to enter a word. It then prints the word in reverse, then informs the user whether or not it is a palindrome.

Program 4 Example Output

This program is used to detect a palindrome. Please enter a word: Hello Your word in reverse: olleH This word is not a palindrome.

Extra Credit: Make your program work with palindrome sentences. For example: A man, a plan, a canal: Panama.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!