Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I also prefer to just have the functions calls in the main only. NA TETET ANIMAL THE CHALLENGE Your task is to write a simple

image text in transcribed

I also prefer to just have the functions calls in the main only.

NA TETET ANIMAL THE CHALLENGE 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 0 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. Your hands-on solutions are awarded points for exhibiting certain features. For this challenge, 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 PALINDROME) tomorrow (IS NOT A PALINDROME) laminate pet animal (IS A PALINDROME) This is the day the Lord has made. (IS NOT A PALINDROME) Too bad - I hid a boot! (IS A PALINDROME)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago