Question: Write a program that prompts the user to enter two ODD integers between 0 and 100. The program will perform some calculation on them and

Write a program that prompts the user to enter two ODD integers between 0 and 100. The program will perform some calculation on them and print out the results. Assumption: Users always enter a number between 0 and 100. You do not need to write the programming logic to check if an input falls within the range. Requirements: No global variables are allowed for this assignment. (i.e., you cannot have variables declared outside main().(-100% if global variables are used). The program accepts two integers as inputs and stores them using variables. The program calculates their sum, difference, product and average and then displays the results. The result of the difference of the two integers must always be a positive number. (Hint is given on next page) The result of the average of the two integers should be displayed with 2 decimal points, e.g., 4.00; 8.00, etc.) (I have added a small challenge in this assignment) The program will terminate if any of the inputs is not an odd integer (Hint: Some C++ features in Chapter 4 [Decision) should be used. The following excerpt of the program using an if" statement is given below as a hint. For the programming logic to check if an input is not an ODD integer, you need to do some research and learn how this can be done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
