Question: need help writing a program using stacks that tests whether or not a word, expression or number is a palindrome. A palindrome is a word

need help writing a program using stacks that tests whether or not a word, expression or number is a palindrome. A palindrome is a word or expression that reads the same forwards and backwards. (ignore punctuation and blanks) Test at least 10 phrases and words. Be sure to label any palindromes as numeric or string in the output. the solution is looking to enter phrase/word via stack, convert to array and check if it is same (frontward and backward)... have not covered queues yet, so working with only Stack and Arrays.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!