Question: C++ WHAT SHOULD THIS PROGRAM DO? (SPECIFICATIONS) You will implement 5 recursive problems described below and call them from a main function to demonstrate them
C++

WHAT SHOULD THIS PROGRAM DO? (SPECIFICATIONS) You will implement 5 recursive problems described below and call them from a main function to demonstrate them working. PROBLEM 1: SUM OF NUMBERS Write a function that accepts an integer argument and returns the sum of all the integers from 1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1, 2, 3, 4,... 50. Use recursion to calculate the sum. PROBLEM 2: ISMEMBER ARRAY FUNCTION Write a recursive Boolean function named isMember. The function should accept three arguments: an array, a value, and the size The function should return true if the value is found in the array, or false if the value is not found in the array PROBLEM 3: STRING REVERSER Write a recursive function that accepts a string object and the length of the string as its argument and prints the string in reverse order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
