Define a recursive function that takes an integer argument


Problem

Define a recursive function that takes an integer argument and returns the factorial of that argument. Recall that 3 factorial, written 3!, equals 3 × 2!, and so on, with 0! defined as 1. In general, if n is greater than zero, n! = n * (n - 1)!.Test your function in a program that uses a loop to allow the user to enter various values for which the program reports the factorial. 6. Write a program that uses the following functions: Fill_array() takes as arguments the name of an array of double values and an array size. It prompts the user to enter double values to be entered in the array. It ceases taking input when the array is full or when the user enters non-numeric input, and it returns the actual number of entries. Show_array() takes as arguments the name of an array of double values and an array size and displays the contents of the array. Reverse_array() takes as arguments the name of an array of double values and an array size and reverses the order of the values stored in the array. The program should use these functions to fill an array, show the array, reverse the array, show the array, reverse all but the first and last elements of the array, and then show the array.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Define a recursive function that takes an integer argument
Reference No:- TGS02635180

Expected delivery within 24 Hours