Question: 3. (50 pts) Write a program using functions that will rint a menu that performs the follawing functions printMenull: This void function will output the

 3. (50 pts) Write a program using functions that will rint

3. (50 pts) Write a program using functions that will rint a menu that performs the follawing functions printMenull: This void function will output the menu options. See sample output for . getUserChoice: This isteger function wil prompt the user and use cin to get and return the user's menu choice. Make sure you use error checking so that the function only returns a vald menu option. Continuously prompt the user until they enter a vald findEvenNumbers): This void function will prompt the user for N and print the even numbers from 1 to N. findOddNumbersO: This void function wil prompt the user for N and print the odd numbers from 1 to N hat would you lske to do? 1. Find even nunbers N . Quit progran Enter your choice: 1 Enter N: 16 Even numbers: 246818 12 14 16 What would you like to do? 1. Find even nunbers N 3. Quit progran Enter your cheice:e ERROR: Invalid choice. Select a valid menu iten. what would you like to do? 1. Find even numbers N 2. Find odd nunbers N 3. Quit progran Enter your choice: 2 Enter N: 6 odd nurbers: 1 3 5 What would you lke to do? 2. Find even nunbers IN 2. Find odd nunbers e N 3. Quit progran Enter your choice: 3 Tenninating progras. WRITE your name in a block or inline comment at the top of your program. PRINT and attach a copy of your source code and output to this worksheet UPLOAD your source code as lab9 cpp to my homework upload

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!