Question: Write a C++ .app (one file with multiple functions, including sample main below) What you need to do: Write a recursive function computeSum that adds
Write a C++ .app (one file with multiple functions, including sample main below)


What you need to do: Write a recursive function computeSum that adds up the sequence of numbers from 1 to N. For example, computeSum(4) should return 1+2+3+4 10. Your function signature should look like: 1. o int computeSum(int n) Write a recursive function findMin that finds the minimum (smallest) number in an array of integers. For example, given the array (12, 21,27,3,11,19) findMin should return 3. Your function signature should look like 2. o int findMin(int arr[], int len) o Note: len is the length of the array Write a function template called printArray that uses recursion prints an array in order. Once again, the function signature can take the length of the array: 3. o void printArray(int arr[], int len) o Note: len is the length of the array Write a function template called printArrayRev that uses recursion to print an array in reverse order. Once again, the function signature can take the length of the array: 4. o void printArrayRev(int arrIl, int len) o Note: len is the length of the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
