Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago

Question

What is IUPAC system? Name organic compounds using IUPAC system.

Answered: 1 week ago

Question

What happens when carbonate and hydrogen react with carbonate?

Answered: 1 week ago