A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Allowances may be made for adjustments to capital letters, punctuation, and word dividers. Famous examples include "A man, a plan, a canal, Panama!", "Amor, Roma", "race car", "taco cat", and "No 'x' in Nixon".
Suggested steps to complete this assignment
- Fork and clone down this repository.
- Run the program. You should see the following output:
there are 6 lines
test is NOT a palidrome.
rotator is NOT a palidrome.
rewriter is NOT a palidrome.
nurses run is NOT a palidrome.
Madam, I'm Adam! is NOT a palidrome.
A Man! A Plan! A Canal! Panama! is NOT a palidrome.
- Start by finishing the
palindrome()methods. You'll want the program to print that
"rotator"is a palindrome and
"rewriter"are NOT palindromes. You may find the custom codingbat problems reverse and isPalindrome helpful.
- Once you get the program working correctly for
"rewriter", you'll need to devise a strategy for working with spaces and capital letters. You may find one or more of these custom codingbat problems helpful: noCapitals, noSpaces, numLetters, and onlyLetters.
- Submit the URL of your GitHub repository to the School Loop drop box for the assignment. Note that like the previous two assignments, this assignment has no graphics or website.