Question: Code need to be in C++ : Here is the sample out put: Write a recursive function that takes a string as an argument and

Code need to be in C++ :

Code need to be in C++ : Here is the sample out

Here is the sample out put:

put: Write a recursive function that takes a string as an argument

Write a recursive function that takes a string as an argument and returns a TRUE if the string is a palindrome otherwise FALSE is returned. A palindrome is a string that reads the same forward and backward (dad, mom, radar). Test with a main program that calls the function. The main function could solicit for input and terminate after receiving an EOF or one can store the strings in a vector or array. The recursive function should ignore white spaces, capital letters (case insensitive), and punctuation. For example: "A man a plan a canal Panama" would be a palindrome. Use paragraphing and comment each logical block of source code. Do not use global variables. Your output should be descriptive. Use the following input: radar Saddleback College CS 1D No lemon, no melon Racecar Dad Mom Was it a cat I saw? A man a plan a canal Panama The rain in Spain * Program Description This program take a word and uses a recursive function to see if the word inputed is a Palindrome. It ignores whitespaces, capital letters, and punctuation. OUTPUT Outputs the word enters and whether it is a palindrome or not. Enter a word (exit to quit): radar radar is a Palindrome

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!