TU Recursive Function that Accepts an Array of Integers Challenge Programming
Question Description
The followings are the requirements for this homework.
- You can either write separate programming for each or build a complex program to implement all the functions that requested by every question
- You have to make sure your code works before submitting your homework. If you cannot make your code work, please write a short description of the problem you had, I would like to read or fix your code to give you partial credits.
- The screenshot(s) of the program’s output is also required to be submitted along with your source code
- You should find the example code from the lecture slides, directly coping from online code will result in a grade “0” for HW3, or even an “F” at the end of the Fall semester. Your submission will be checked by the plagiarism checking system
The QUESTION IS HERE:
Programming Challenge
1.Write a recursive function that accepts an array of integers and a number indicating the number of elements
is arguments. The function should recursively calculate the sum of all the numbers in the array.
2.Write a recursive 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, …, 50.
3.Write a recursive function that accepts a string object as its argument and prints the string in reverse order.
4.Write a recursive function that accepts two integers as its arguments and calculate the great common divisor of two integer numbers.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."