Develop a c++ code  that will accept two integer numbers (Minimum and Maximum). The program should determine and display the odd and even numbers between the two numbers. Calculate and Display the total of Odd numbers and Even numbers and the number of Odd and even numbers between the two numbers.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.2: Formatting Numbers For Program Output
Problem 10E
icon
Related questions
Question
100%

Develop a c++ code  that will accept two integer numbers (Minimum and Maximum). The
program should determine and display the odd and even numbers between the two numbers.
Calculate and Display the total of Odd numbers and Even numbers and the number of Odd and
even numbers between the two numbers.


Consider the below points:


1. The program should be able to process if the minimum value captured is less than the
maximum value captured. The program should determine and display odd and even
numbers between the two numbers in ascending order.
2. The program should be also able to process if the minimum value captured is greater
than the maximum value captured. The program should determine and display odd and
even numbers between the two numbers in descending order.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Guessing the output
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,