Question: Prompt the user to provide two integer numbers. Prompt the user to select a math function ( + - * or / ) . Based

Prompt the user to provide two integer numbers.
Prompt the user to select a math function (+-* or /).
Based on the function selected, perform the correct math using the two integers.
Display the result of the operation, including reference to the function that was performed. For example, Integer 1+ Integer 2= result.
Determine individually if Integer 1 is odd or even, and if Integer 2 is odd or even. Other than needing to keep careful track of your program flow, this is the new element of assembly programming in Lesson 13.
A tip here is to think about how we performed division in the earlier step -- we determine a quotient and a remainder.
We can tell if a number is odd or even by dividing by 2.
If the number divided by 2 leaves a remainder of 0, it is even.
Otherwise, the number must have been odd.
Display the conclusion about Integer 1.
Display the conclusion about Integer 2.
Determine the relationship between Integer 1 and 2; we know there can be three possible outcomes of such a comparison:
Integer 1 can be greater than Integer 2.
Integer 1 can be less than Integer 2.
Integer 1 can be equal to Integer 2.
Once you have determined the relationship between the two integers, you will display the result of that comparison to the user in human-friendly text, for example:
The first integer is greater than the second.
The first integer is less than the second.
The two integers are equal.
You should add extra line breaks (/n) as needed to make sure the console window looks organized.

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 Finance Questions!