Question: Algorithm and Programing problem. Write an algorithm in pseudocode or flowchart (NOT both, select one, python code is not accepted) that has the objective of

Algorithm and Programing problem.
Write an algorithm in pseudocode or flowchart (NOT both, select one, python code is not accepted) that has the objective of separating a list of positive integers provided by the user into two groups: (1) even numbers (multiples of 2 ) and (2) odd numbers (not multiples of 2). The list can have any number of terms and will be fed by the user, one by one, until he decides to write -1. You could test your program with the following list: 2, 4, 1, 6, 3, 5, 13, 15, 17, 8, 10, 12, and 9. The program should run for any number of numbers in the list. An example of the run is:
OUTPUT
Enter a positive number: 2
The number 2 is even
Enter a positive number: 4
The number 4 is even
Enter a positive number: 1
The number 1 is odd
.... etc.
Enter a positive number: -1
BYE

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!