Really Need Help Code C Please Know S Similar Question Answer Isn T Correct Palindrome Str Q43905668
I really need help with the code for this, in C++ please, I knowthere’s a similar question but the answer isn’t correct :[ Apalindrome is a string that reads the same forwards and backwards(ignoring spaces, punctuation, and capitalization). Examples arethe familiar “If I had a hi-fi,” the grander “A man, a plan, acanal, Panama,” and “Some men interpret nine memos.” So thegoal: Design, implement, document, and test a program that reads aline of input from the terminal window and reports whether or notthat line is a palindrome. The object of this project is to reviewand exercise C++ in general and arrays in C++ in particular. Input:An input line may contain any characters, though only letters arerelevant in palindromes. Upper-case and lower-case letters areconsidered the same; ‘A’ = ‘a’. For convenience, the maximum lengthof the input is 80 characters. Output: The program will prompt forthe input line—a candidate palindrome—and will report whetheror not the line is a palindrome. Errors: The program may assumethat the input is as described. It need not detect any errors.Example: Several runs of the program might look like this: csh>pal Enter a line that might be a palindrome: Madam I’m Adam. Thestring is a palindrome. csh> pal Enter a line that might be apalindrome: Able was I ere I saw Elba. The string is a palindrome.csh> pal Enter a line that might be a palindrome: Go hang asalami, I’m a lasagna hog. The string is a palindrome. csh> palEnter a line that might be a palindrome: This is another candidatestring. The string is NOT a palindrome. PLEASE INCLUDE/ REQUIRED TOBE A COMPLETE ANSWER: Use arrays of characters to hold any stringsthat the program manipulates, and terminate strings within thosearrays with the null character ‘ ‘. Include at least one function.Helpful direction/ tips: Read the input one character at a time andpreserve only the letters; they’re all that’s interesting. Note theiostream.h function get( ), which reads exactly one character,including the blank. The following loop reads all the characters inan input line, one at a time, into the variable ch. char ch; . . .cin.get(ch); while ( ch >= ‘ ‘ ) { < Do something with ch.> cin.get(ch); } When designing tests for your program, notethat a string that contains no letters is a palindrome, as is anempty string.
Expert Answer
Answer to I really need help with the code for this, in C++ please, I know there’s a similar question but the answer isn’t correct…
OR