Question: 7:50 Search ..15GE Back Assignment Details (COP 3014-0019.sp20) Programming Objective: The purpose of this assignment is to: You are comfortable with C++ functions (pre-defined and

 7:50 Search ..15GE Back Assignment Details (COP 3014-0019.sp20) Programming Objective: The
purpose of this assignment is to: You are comfortable with C++ functions
(pre-defined and user-defined). You are familiar with C++ control structures (loops and
branches) in any combination. You can recover from wrong user inputs. You
are comfortable with console input and output involving numeric types. You can
approach a complex problem, break it down into various parts, and put

7:50 Search ..15GE Back Assignment Details (COP 3014-0019.sp20) Programming Objective: The purpose of this assignment is to: You are comfortable with C++ functions (pre-defined and user-defined). You are familiar with C++ control structures (loops and branches) in any combination. You can recover from wrong user inputs. You are comfortable with console input and output involving numeric types. You can approach a complex problem, break it down into various parts, and put together a solution. Directions: Write a C++ program to run a menu-driven program with the following choices: 1. Count number of even digits in a number 2. Compute the factorial of a number 3. Quit Make sure your program conforms to the following requirements: 1. This program should be called playing WithNumbers.cpp Include the basic header in your program . (5 Submit Assignment Dashboard Calendar To Do Notifications inbox 7:50 Search ..15GE 0. It must have a pass by reference parameter that will store the value selected by the user. (10 points) 3. Write a function called numEven Digits that takes a number as a value parameter and returns the count of how many digits in the number are even. (20 points). 4. Write a function called factorial that takes a number as a value parameter and returns the factorial of the number. (20 points). n! = n* (n-1) * (n-2)* ...1 5. Add comments wherever necessary. (5 points) Sample Runs: NOTE: not all possible runs are shown below. Submit Assignment Dashboard Calendar To Do Notifications inbox 7:50 Search ..15GE Back Assignment Details (COP3014-0019.sp20) Programming Sample Runs: NOTE: not all possible runs are shown below. Sample Run Welcome to the playing with numbers! 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..9 Select an option (1..3)..-9 Select an option (1..3)..1 Enter in a positive number greater than 0...12 numEven Digits(12)= 1 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..1 Enter in a positive number greater than 0...22 numEven Digits (22)= 2 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..1 Enter in a positive number greater than 0...1345 numEven Digits (1345) = 1 1) Count the even digits in a number Submit Assignment Dashboard Calendar To Do Notifications inbox 7:50 ..15GED Search Back Assignment Details (COP 3014-0019.sp20) Programming Enter in a positive number greater than 0...1345 numEven Digits(1345)= 1 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..1 Enter in a positive number greater than 0...2461 numEven Digits (2461)= 3 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..2 Enter in a positive number greater than 0...1 Factorial(1) = 1 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..2 Enter in a positive number greater than 0...2 Factorial(2) = 2 1) Count the even digits in a number 2) Compute the factorial of a number 3) Quit Select an option (1..3)..2 Enter in a positive number greater than 0...3 Factorial(3) = 6 1) Count the even digits in a number 2) Compute the factorial of a number Submit Assignment Dashboard Calendar To Do Notifications inbox 7:50 Search ..15GE

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!