Question: IFor programming problems, you have to use C++ language. You have to write source code in pen. For algorithm design, you have to write the
IFor programming problems, you have to use C++ language. You have to write
source code in pen. For algorithm design, you have to write the pseudocode with suitable
indentation. If you write C++ program for algorithm design problem, you will be given zero to
that problem.
1. Write a recursive function (not the program) that returns the sum of the cubes of the positive
integers from 0 to n, where n is a positive integer.
2. Write a recursive function (not the program) that returns true if the digits of a positive integer
are in increasing order; otherwise, the function returns false.
3. Write a recursive function that uses an array parameter to accept integers and returns
the average of the integers stored in the array. Assume that the size of the array be n.
4. Write a recursive function (not the program) to find sum and product of the following:
a)Sum=15+30+45+60+75+90+105+120+135+150+165+180+195+210+225
b) Product=2*3*5*7*9*11*13*17*19*23*29*31*37*41
5. Write a recursive function that gets an integer as a parameter and returns the pattern as
shown below. For example, if user passes an input integer 3 to the function, it should
output:
*
**
***
***
**
*
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
