Example Menu for C++ Programming A] Multiply numbers [B] Sort numbers (Even or Odd) [X] Exit Choose a letter: Discussion on how the program works 1. The user is prompted with a menu as shown above. 2. If the user did not input any of the letters in the menu, a message that input should only include A or B or X 3. if A is chosen: a. The user is prompted to input how many numbers to be multiplied, Example :3 The user will then be prompted to input 3 numbers. b. Input num 1:2 (example 2 is inputted by the user) Input num 2: 4 (example 4 is inputted by the user) Input num 3: 5 (example 5 is inputted by the user) c. The 3 numbers will then be multiplied and displayed to the user. The product of 2 4 5 is 40. 4. Display again the menu 5. Wait for the letter that the user will input 6. if the user inputted B a. The user will be prompted to input how many numbers will be filtered, Example :3 b. The user will then be prompted to input 3 numbers. Input num 1: 2 (example 2 is inputted by the user) Input num 2: 4 (example 4 is inputted by the user) Input num 3:5 (example 5 is inputted by the user) c. Filter numbers in Even Numbers? No (answer is Yes or No, if the answer is Yes then the numbers will be filtered in a list of even numbers. If the user inputted No then the numbers will be sorted in an odd list of numbers) d. The numbers will then be filtered and will be displayed to the user. The numbers 2 and 4 are filtered as Even Numbers. 7. The Menu will be displayed until the user will choose X for exit.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In C++ language programing. 

Example Menu for C++ Programming
A] Multiply numbers
[B] Sort numbers (Even or Odd)
[X] Exit
Choose a letter:
Discussion on how the program works
1. The user is prompted with a menu as shown above.
2.
If the user did not input any of the letters in the menu, a message that input should only
include A or B or X
3. if A is chosen:
a.
The user is prompted to input how many numbers to be multiplied, Example :3
b. The user will then be prompted to input 3 numbers.
Input num 1: 2 (example 2 is inputted by the user)
Input num 2: 4 (example 4 is inputted by the user)
Input num 3: 5 (example 5 is inputted by the user)
c. The 3 numbers will then be multiplied and displayed to the user.
The product of 2 4 5 is 40.
4. Display again the menu
5. Wait for the letter that the user will input
6. if the user inputted B
a. The user will be prompted to input how many numbers will be filtered,
Example :3
b. The user will then be prompted to input 3 numbers.
Input num 1: 2 (example 2 is inputted by the user)
Input num 2: 4 (example 4 is inputted by the user)
Input num 3: 5 (example 5 is inputted by the user)
c. Filter numbers in Even Numbers? No (answer is Yes or No, if the answer is Yes
then the numbers will be filtered in a list of even numbers. If the user inputted No
then the numbers will be sorted in an odd list of numbers)
d. The numbers will then be filtered and will be displayed to the user.
The numbers 2 and 4 are filtered as Even Numbers.
7. The Menu will be displayed until the user will choose X for exit.
Transcribed Image Text:Example Menu for C++ Programming A] Multiply numbers [B] Sort numbers (Even or Odd) [X] Exit Choose a letter: Discussion on how the program works 1. The user is prompted with a menu as shown above. 2. If the user did not input any of the letters in the menu, a message that input should only include A or B or X 3. if A is chosen: a. The user is prompted to input how many numbers to be multiplied, Example :3 b. The user will then be prompted to input 3 numbers. Input num 1: 2 (example 2 is inputted by the user) Input num 2: 4 (example 4 is inputted by the user) Input num 3: 5 (example 5 is inputted by the user) c. The 3 numbers will then be multiplied and displayed to the user. The product of 2 4 5 is 40. 4. Display again the menu 5. Wait for the letter that the user will input 6. if the user inputted B a. The user will be prompted to input how many numbers will be filtered, Example :3 b. The user will then be prompted to input 3 numbers. Input num 1: 2 (example 2 is inputted by the user) Input num 2: 4 (example 4 is inputted by the user) Input num 3: 5 (example 5 is inputted by the user) c. Filter numbers in Even Numbers? No (answer is Yes or No, if the answer is Yes then the numbers will be filtered in a list of even numbers. If the user inputted No then the numbers will be sorted in an odd list of numbers) d. The numbers will then be filtered and will be displayed to the user. The numbers 2 and 4 are filtered as Even Numbers. 7. The Menu will be displayed until the user will choose X for exit.
Expert Solution
steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY