Question: Could someone potentially help me with this ?It would mean a lot ( See screenshot down below) Description CSCI lOOU - Laboratory #10 Introduction This

Could someone potentially help me with this ?It would mean a lot ( See screenshot down below)

Could someone potentially help me with this ?It would mean a lot

Description CSCI lOOU - Laboratory #10 Introduction This lab will focus on using a stack class to solve a problem in C++. Activity #1 You are required to write a C++ program in your favorite lDE that checks to see if a word is a palindrome or not. A palindrome is a word or sequence of characters which reads the same backward as forward. such as madam or eye. Please write a program keeping in mind the following: 0 Your goal is to take a string from the user and check to see if it is a palindrome or not. then output the answer. Your program must have a Stack class that implements a stack along with both push and pop methods Each character of the word entered by the user must be pushed into the stack. On the pop ofthe characters from the stack. you would get characters in backward directions 8.3.. if user enters ABC. you push A, B and C on to the stack, however, when you pop from stack, you'd get C, B and A since a stack uses Last In First Out order. Based on this behaviour of a stack, it can help you in reversing the word. Once you get the reversed word, you can simply compare it with the original word to see if both of them are the same or not. If it's the same, it's a palindrome, if not, it's not. You are free to program your Stack class in any way you like, however, you CANNOT use any built-in functions from any library

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 Programming Questions!