Question: Write a C++ program to run a menu-driven program with the following choices: Compute the Factorial of a number Compute the Superfactorial of a number
Write a C++ program to run a menu-driven program with the following choices:
- Compute the Factorial of a number
- Compute the Superfactorial of a number
- Quit
Write a function called void getValidUserInputPosNumGT09int &num); that allows a user to enter in an integer and validated that the number is > 0. It must have a pass by reference parameter that will store the value selected by the user.
Write a function called factorial that takes a number as a value parameter and returns the factorial of the number. long double factorial(int num);
Write a function called SuperFactorial that takes a number as a value parameter and returns the factorial of the number. long double SuperFactorial (int num)
Must only use
Only use input/output statements, variables, selection statements, loops, and functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
