Question: Use C++ please 1. Recursion coding exercises (a) Use recursion to write a function isPal that returns true if the input string is a Palindrome,
Use C++ please

1. Recursion coding exercises (a) Use recursion to write a function isPal that returns true if the input string is a Palindrome, otherwise returns false. For example: isPal("ah212ha") return true. (b) Write a program called Catalan which takes one argument and calls a recursive function which computes the nth Catalan number and prints the result to the consol. They are defined by the following recursive formula forn 2 0 (with Co 1): For example, Catalan 4 would print out: 14, Catalan 10 would print out: 16796. The Catalan number form a sequence of natural numbers that occur in many counting problems. They are named after the mathematician Eugene Charles Catalan (see Wikipedia page)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
