Write a C, C++ or Java program to implement each of the following functions. For each function, use a long long datatype for all integer variables and a double datatype for all decimal variables. 1. Permutations(N,X): This function returns the number of ways X objects can be drawn from N objects in a particular order. 2. Combinations (N,X): This function returns the number of ways X objects can be drawn from N objects ignoring the order in which the objects are drawn. 3. Binomial(N,P,X): This function returns the binomial distribution probability of having Xsuccesses in N independent trials, where P is the probability of a success in each trial. Show transcribed image text Write a C, C++ or Java program to implement each of the following functions. For each function, use a long long datatype for all integer variables and a double datatype for all decimal variables. 1. Permutations(N,X): This function returns the number of ways X objects can be drawn from N objects in a particular order. 2. Combinations (N,X): This function returns the number of ways X objects can be drawn from N objects ignoring the order in which the objects are drawn. 3. Binomial(N,P,X): This function returns the binomial distribution probability of having Xsuccesses in N independent trials, where P is the probability of a success in each trial.

## Expert Answer

Answer to Write a C, C++ or Java program to implement each of the following functions. For each function, use a long long datatype…