Project 2 - some text manipulation
A palindrome is a word that is spelled the same backwards as it is forward. For example, the word madam is a palindrome.
Requirements
The following is a brief list of requirements:
- The application takes a line of text from the keyboard.
- It should fail if the line is blank or contains a non-alphabet character.
- Any text entered should be converted to either lower- or upper-case.
- The word should be tested in a separate function to see if it is a palindrome. If it is, the function should return true; otherwise it should return false.
- The calling function should output whether the inputted text is (or not) a palindrome.
Code notes
The palindrome function should be recursive.