Question: Programming in C++ 1. Using the following header to write a recursive function that receives an integer array along with its length. int sumOdds(int a[
Programming in C++
1. Using the following header to write a recursive function that receives an integer array along with its length.
int sumOdds(int a[ ], int length);
This function returns the sum of all the odd numbers in the array.
2. Using the following header
int sum(int n);
to write a recursive function that receives an positive integer n and returns the sum of the following sequence:
5,8,11,14,17,.....(5+3n)
3. Using the following header
int display(int a[ ], int length)
to write a recursive function that receives an integer array along with its lengthand displays all the numbers in the array(disaplys the first number in the array first).
4. Using the following header
void displayPositive(int a[ ], int length);
to write a recursive function that receives an integer array alone with its length and displays all the postive numbers in the array.
NEEDS TO BUILD AND RUN PLEASE!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
