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

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. (ie.. 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 "t" 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. if ( logic of checking if input(s) are not ODD integers goes here { cout

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!