Question: USING C++ (Don't use scanf) Problem 2: Write a program that takes any string from the user and runs the palindrome test on it. We

 USING C++ (Don't use "scanf") Problem 2: Write a program that

USING C++ (Don't use "scanf")

Problem 2: Write a program that takes any string from the user and runs the palindrome test on it. We discussed this algorithm in class. This should use two stacks created using the class from Problem The basic process is: 1. Push the string onto one stack 2. Pop half the stack and push it onto the second stack 3. Check the parity issue 4. Pop both stacks simultaneously and compare 5. Output results

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!