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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started