A palindrome is a word that is the same whether written forward or backward, for example, “kayak.” In this chapter, we will find all English words that are palindromes. This will give us further practice with object-oriented programming, unit testing, and recursion.
The classes we developed in the previous chapter are a great starting point for this project. Our implementation strategy will be based on adding an isPalindrome function to the Term class. We will then write a main function that loops through the words in the ...