Answered step by step
Verified Expert Solution
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
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 . 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 withStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started