Question: Arithmetic Overview For this daily, write a C + + program that will perform simple arithmetic with two integer values and display the results. A
Arithmetic
Overview
For this daily, write a C program that will perform simple arithmetic with two integer values and display the
results.
A CPP file arithmeticcpp has been provided. It contains the declaration for two integers num and num
Add code that will calculate:
first number second number
first number second number
first number second number
first number second number
first number second number
second number first number
second number first number
second number first number
Display the results of the calculations in the format:
firstnumber operator secondnumber result
There should be one space after each portion of the display, except the result, which should be followed by a
newline character. Also make sure there is a blank line before the results that start with the second number.
The display of the results should start and end with a newline character.
DO NOT change any of the code that is provided in int main
File You Must Submit
Add the required code to the source file named arithmetic.cpp
Output
The output produced by the program will vary based on the values entered when it is executed. The output that
is shown below is what the program will produce when it is run in an environment such as Dev C or XCode.
When it is run through the Auto Grader, the portions that ask for the integer values WILL NOT show the value
that is entered.
This is used to produce the output for diff :
First number?
Second number?
This is used to produce the output for diff :
First number?
Second number?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
