N Unic 7 Following Program Defines Function Checks Word Palindrome Uses Main Program Palin Q43889249
c++
N UNIC 7. The following program defines a function that checks if a word is palindrome and then uses it in the main program. Palindrome words are words that read the same backwards and forwards (e.g. “madam”, “rotator”). There are some missing lines. Fill in the blanks. (10. #include <iostream> #include <cstring> using namespace std; int main() cout << “Enter a string: “; cin>>S; int low = 0; int high = strlen(s) – 1; while (low < high) if (slow] ! – s[highl) is Palindrome – false; // Not a palindrome break; high–; cout << s << ” is a palindrome” << endl; else return 0; (20 points) Page 8 10 Show transcribed image text N UNIC 7. The following program defines a function that checks if a word is palindrome and then uses it in the main program. Palindrome words are words that read the same backwards and forwards (e.g. “madam”, “rotator”). There are some missing lines. Fill in the blanks. (10. #include #include using namespace std; int main() cout S; int low = 0; int high = strlen(s) – 1; while (low
Expert Answer
Answer to N UNIC 7. The following program defines a function that checks if a word is palindrome and then uses it in the main prog…
OR