Question: Please completely do the program using the format given below, thank you!! Objective Recursive Functions Project The formula for computing the number of combinations that
Objective Recursive Functions Project The formula for computing the number of combinations that result from choosing r different items from a set of size n is n! C (n,r) (n -r where the factorial notation is defined as Develop a recursive version of the combinations formula C (n r) and write a recursive function that computes the value of the formula. Add the function as a subfunction of a driver function that tests it. Overall you project will consist of the project function, the printHeader function, an input function that will prompt the user for n and r and error check that r S n, your recursive combinations function, and an output function. Note: Do not use the factorial function that we developed in class as a part of your program. Hint: Write out the calculation for several small combinations such as C(5,3) and C 7, 4) and then simplify the calculation as a repeated product of fractions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
