Question: i need help with coding and where the code goes .h, .cpp, test.cpp and main.cpp QUESTION 4 1. A palindrome is a word which reads
QUESTION 4 1. A palindrome is a word which reads the same backward or forward. 'abcha' is a palindrome. Write a method that detects if a string is a palindrome. Implementation In the header file, write a bool value return function prototype is palindrome with an const reference string parameter. In the cpp fle, write the code to relurn true if the string is a palindtome false otherwise Example: is palindrome("abcba") retums returns true is palindrome("abc2) returns false Test Cases Use the table below to write the test case to test every option in the Points Earned table above. Main Program Flow The program flow is as follows: 1) Prompt user for a string- 2) Pass the string to the is_palindrome function, save the return value to a variable in main. 3) Display true or false 4) The program will loop until user wants to exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
