Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Palindromes) A palindrome is a string thats spelled the same way forward and backward. Some examples of palindromes are: radar, able was i ere i
(Palindromes) A palindrome is a string thats spelled the same way forward and backward. Some examples of palindromes are: radar, able was i ere i saw elba. Write a function testPalindrome that returns 1 if the string is a palindrome or 0 if it is not. Your main program should prompt the user to provide a string of characters, then display the characters the user input back on the screen and store them into a file. Then one more time display the string in reverse and append it to the same file below the original string the user provided
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