Question: Write a C++ program that determines if a given string is a palindrome. A palindrome is a word or phrase that reads the same backward

Write a C++ program that determines if a given string is a palindrome. A palindrome is a word or phrase that reads the same backward as forward. Blank, punctuation marks and capitalization do not count in determining palindromes. Here is some examples of palindromes:

Radar Too hot to hoot Madam!I'm adam A man, A plan, A canal-Panama Doc, note, I dissent! A fast never prevents a fatness; I diet on cod

Requirements:

void transform( char *raw, char *testStr); The function transform converts the given string raw into a standard form by coverting lowercase letters into uppercase letter and removing all characters other than letters and numerals from the string. The converted string will stored in C string testStr.

bool testPalindrome(char *str); The function test checks whether the C string str is a palindrome. If the C string str is palindrome, then the function returns true; otherwise, the function returns false.

Please make sure requirements are met, and it works. The other code I saw on here doesn't work.

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!