Question: Programming Question 3: [8 points) C. In permutations and combinations, the term n Cr refers to n combinations taken r at a time. ! r!(n-r)!

 Programming Question 3: [8 points) C. In permutations and combinations, the

Programming Question 3: [8 points) C. In permutations and combinations, the term "n Cr" refers to n combinations taken r at a time. ! r!(n-r)! ncr = Write a recursive function to find the factorial of a number. Use the defined function to compute the term "nCr" for the following scenario: The values of 'n' and 'r' are stored in two parallel arrays of any user defined size. You have to Read the arrays n and rat run time. Compute n Cr for each corresponding terms in the array 'n' and 'r', store it in another separate array and display the output array properly formatted. Also your program should print the current date and time using library functions. Sample input: Array 'T 3 5 2 Index 0 1 2 3 5 6 7 8 9 Array 'n' 22 13 4 16 23 18 15 18 22 3 6 Computed nCr 1540 1287 6 560 100947 18564 1364 816 26334 6 4 3 5 I.BE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!