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

Use C++ please 1. Recursion coding exercises (a) Use recursion to write

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!