Question: Write a C++ Program to check whether a string is a palindrome or not. A palindrome is a word, verse, or sentence (such as

 Write a C++ Program to check whether a string is a

Write a C++ Program to check whether a string is a palindrome or not. A palindrome is a word, verse, or sentence (such as " ere I saw Elba") that reads the same backward or forward In this task, the inserted string should consist of letters only A to Z and a to 2). In case of an invalid character is inserted, the output will be the phrase "Wrong entry if the iserted strings palindrome the output will be the word "Palindrome.elseit will be "NOT Palindrome". The inserted string is case fosensiti IMPORTANT NOTE Do not add any cout statements except for the final answer as specified above Do not add "Enter a number the number of digits is" or any similar prompts. Also note that the automatio grader is case-sensitive, so palindrome is wrong but Palindrome is right . Do not add any unnecessary Spaces inside the strings of cout statements You may add any libraries needed

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!