please use C++ programming language and please include the comments in the code.
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
***please use C++
![Question 2
#include
using namespace std;
void func (int vall, int val2);
int main ()
//line 1
//line 2
7/line 3
//line 4
//line 5
//line 6
cout << "Please enter two integers." << endl; //line 7
//line 8
//line 9
//line 10
//line 11
//line 12
//line 13
int numl, num2;
cin >> num1 >> num2;
func (num1, num2) ;
cout <<
The two integers are " << numl
<< ", " << num2 << endl;
return 0;
void func (int vall, int val2)
//line 14
//line 15
//line 16
//line 17
{
int val3, val4;
val3 = val1 + val2;
//line 18
//line 19
//line 20
val4 = val1 * val2;
cout << "The sum and product are
" << val3
and " << val4 << endl;
}
//line 21
Program 1
(a) In the above Program 1, write line number the marked statements
to show the order in which they will execute (the logical order of execution).
(b) Based on Program 1, identify the following:
i. Function prototype.
ii. Function heading.
jiji, Function body.
iv. Function definition.
v. Function call statement.
vi. Formal parameter & Actual parameter.
(c) Based on answer in (a), find the output of Program 1 given numl=34 and num2=22.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd1ace769-4fe8-4c64-9c2c-b3eed42ccb75%2F26f45fe2-586b-4e91-b7f2-85a867943180%2Fhh4fd7_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)