Problem Statement: A 4 th grader is having trouble with Permutation and Combination problem in Mathematics, so a friend offered help to create a program they can use. The program contains 3 options, 1...



Problem Statement:


                A 4th
grader is having trouble with
Permutation
and
Combination
problem in Mathematics, so a friend offered help to create a program they can use. The program contains 3 options, 1st
option is for Permutation, 2nd
option is Combination and 3rd
is for terminating the system. For option 1, Permutation, they uses the following formula: nPr =  ; where r must not be greater than n. It should not proceed if this condition is not met. For 2nd
option, Combination, they uses the formula : nCr =  ; where r must not be greater than n as well. For the 3rd
option, the program owner’s information shall be displayed, like name, subject code and account number, before the program terminates.




Requirements:



  1. Develop the required system and use
    cpp
    for the file name

  2. Remember that both
    n
    and
    r
    are variables, their values shall only be entered at run time.

  3. The program requires the use of any
    looping

  4. The program requires the use of any
    conditional

  5. Introduce at least
    2 return type programmer defined functions and 1 void type programmer defined function.

  6. Create a
    header file
    containing only the programmer-defined functions you created.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here