Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Your task is to write a simple palindrome word, number and sentence detector. You may write your solution in the programming language of your

C++ image text in transcribed
Your task is to write a simple palindrome word, number and sentence detector. You may write your solution in the programming language of your choice. You can click here to visit a website that hosts a palindrome-ness solution just to prove to yourself it can be done! Your solution doesn't have to be so fancy! Your program should REPEATEDLY do the following: Ask the user to input a line of text (up to 80 characters) from the keyboard. If the only input is the digit or word zero (that is, either O or zero) then quit; otherwise Echo the input text back to the user EXACTLY as entered. Tell the user whether the input IS A PALINDROME or IS NOT A PALINDROME. In your solution, I will be looking for the following features. (2 points possible for each of 5 features "loops" to repeatedly ask for input "terminates" as specified correctly accepts input (yells if the input is too long or null) correctly echoes input outputs answer (palindrome or not) . . (2 points possible for each of 6 test cases) Your program must produce the correct output for the following test cases. You must input the test cases exactly as shown below, including capitalization, spaces, punctuation, etc. NOon (IS A PALINDROME 2020 (IS NOT A PALNDROME) tomorrow (IS NOT A PALINDROME) Too bad - I hid a boot! (IS A PALINDROME laminate pet animal (IS A PALINDROME) This is the day the Lord has made. (IS NOT A PALINDROME) THE EVIDENCE (4 points possible for each of 2 evidence items) Submit 2 items: Source code for your solution in a text format. A SINGLE FILE that shows ALL successful test runs. A screenshot is a good option for thi WARNING: If I am unable to open or read your source code, OR-you submit MULTIPLE files instead of a SINGLE file containing your test runs, YOU WILL RECEIVE A ZERO for this entire hands-on activity

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions