Develop a c++ program  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. 3. Should be able to handle appropriately when equal values are captured.  4. Include appropriate comments (to demonstrate understanding)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
Question
100%

PROBLEM SPECIFICATION:
Develop a c++ program  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.
3. Should be able to handle appropriately when equal values are captured. 
4. Include appropriate comments (to demonstrate understanding)

Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Variables
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