PROBLEM:

This program will use RECURSION to generate palindromes from a list of characters inputted by the end user. You should create a GUI that will allow a user to enter in the characters. For the purpose of this assignment the user should be allow to enter a maximum of 5 characters. Once entered the program using recursion should generate and print in the GUI all possible palindromes of length K or less.

For example: If a user enters in the letters 'a', b, c then the output should be as follows:

aba
abcba
accca
cbaabc

Since K in this K = 3 the program should allow the generation of palindromes of length 6 or less.

What is a palindrome?

A palindrome is a word, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar.

NOTE: This assignment MUST use RECURSION.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.