Question: Write a program in C + + programming to prompt a user to enter a string of up to 3 5 characters, and then test
Write a program in C programming to prompt a user to enter a string of up to characters, and then test whether the line is a palindrome. A palindrome is a sequence of characters that reads the same backward as forward.
If the line is a palindrome, write the line to a file.
Loop until the user does not want to enter anymore lines to check for Palindromes.
Technology requirements:
Use a stack.Ignore spaces, punctuation, and numbers. Use only letters.Ignore the case of the letters.Determine if the string entered is a Palindrome. Display a message on the screen to let the user know if the string is a Palindrome or not.If the string is a Palindrome, write the string to a file.Loop, asking for more strings to check for Palindromes until the user wants to end the program.
Pseudo code. Remember the Input, process, output model. Look at what the input should be what the process is and what the output should be Use the code examples in the book and our week lab to understand how to code the input, process, and output. First go into the problem statements above and highlight what needs to be done. Remember chapter the decomposition and using stepwise analysis when developing an algorithmpseudo code. Pseudocode is part of your design and documentation grade.
Please submit your pseudocode with your code and screenshots of test cases. You will also need screenshots of the palindrome.dat file or upload the palindrome.dat file.
Test Data:
Palindrome Tester Program
Enter a line of text:
Bob
"Bob" is a palindrome. Writing to the file.
Do you want to enter another string to test for a Palindrome YN:
Y
Enter a line of text:
Bill is an excellent student
Bill is an excellent student is not a palindrome.
Do you want to enter another string to test for a Palindrome YN:
N
Thanks for using my program!
Program finished with exit code
Press ENTER to exit console.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
