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:

  1. Compute the Factorial of a number
  2. Compute the Superfactorial of a number
  3. 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 , and libraries.

Only use input/output statements, variables, selection statements, loops, and functions.

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!