Question: C++ ONLY PLEASE. I JUST NEED HELP WITH THE LAST 2 FUNCTIONS PLEASE. THANKS IN ADVANCE. PROBLEM 4: PALINDROME DETECTOR A palindrome is any word,
C++ ONLY PLEASE. I JUST NEED HELP WITH THE LAST 2 FUNCTIONS PLEASE. THANKS IN ADVANCE.
PROBLEM 4: PALINDROME DETECTOR A palindrome is any word, phrase, or sentence that reads the same forward and backward. Here are some well-known palindromes: KAYAK RACECAR ROTOR LEVEL MADAM MOM NOON
The main function will take the users string and make it all uppercase and also remove all spaces and commas. Then, you should write a bool function that uses recursion to determine if the modified users string argument is a palindrome. The function should return true if the argument reads the same forward and backward
PROBLEM 5: RECURSIVE MULTIPLICATION Write a recursive function that accepts two arguments into the parameters x and y. The function should return the value of x times y. Remember multiplication can be performed as repeated addition: 7 * 4 = 4+4+4+4+4+4+4
SAMPLE OUTPUT
What do you want to do? 1. Sum of Numbers 2. IsMember Array Function 3. String Reverser 4. Palindrome Detector 5. Recursive Multiplication 6. End the Program CHOOSE 1-6: 4
PALINDROME DETECTOR Enter a string and I will tell you if it is a palindrome: racecar
Yes! RACECAR IS a palindrome!
What do you want to do? 1. Sum of Numbers 2. IsMember Array Function 3. String Reverser 4. Palindrome Detector 5. Recursive Multiplication 6. End the Program CHOOSE 1-6: 5
RECURSIVE MULTIPLICATION Enter in the first integer: 5
Enter in the second integer: 9
The value of 5 x 9 is 45
What do you want to do? 1. Sum of Numbers 2. IsMember Array Function 3. String Reverser 4. Palindrome Detector 5. Recursive Multiplication 6. End the Program CHOOSE 1-6: 6
GOODBYE!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
