Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this program in C++ Your second programming task is to build a decider, much like the one that you built in Lab 1

image text in transcribedPlease write this program in C++

Your second programming task is to build a decider, much like the one that you built in Lab 1 . Again, your decider will ask the user to submit a word, and again it will determine whether or not that word has a certain property. In this case, your decider is looking for palindromes (words that are spelled the same both forwards and backwards). And in fact, this decider isn't so picky. It will also accept palindromes that it deems "close enough". A word is "close enough" to being a palindrome if the first three characters (or more) of the word match the corresponding three characters (or more) at the end of the word. If the user submits a true palindrome, your program will not only print an enthusiastic confirmation, but it will also continue to prompt for additional words. Same thing if the user submits a "close enough" palindrome, albeit with a less enthusiastic confirmation. If the user submits a word that is neither a true palindrome nor a "close enough" palindrome, your program should thank them for their time and terminate. A program that demonstrates this functionality can be run with

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_2

Step: 3

blur-text-image_3

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