It reads the same forwards and backwards.
A palindrome is a word, number or phrase that reads the same backwards as forwards, such the words madam or racecar.
⭐⭐⭐
Write a program that allows the user to enter a word or sentence. The program outputs whether the input is a palindrome or not.
Remember to add a comment before a subprogram, selection or iteration statement to explain its purpose.
palindrome that:phrase to be processed.phrase is a palindrome.phrase is not a palindrome.Note the algorithm will need to ignore case, whitespace and punctuation.
main program so that:Enter a phrase: ABBA
ABBA is a palindrome.
Enter a phrase: 02/02/2020
02/02/2020 is a palindrome.
Enter a phrase: A man, a plan, a canal – Panama
A man, a plan, a canal – Panama is a palindrome.
Enter a phrase: Hello World
Hello World is not a palindrome.