00:01
In this question, what we have to do is, we have to write the program in c+ + creating two functions.
00:09
One is multiply in which we will pass two parameters a and a2 of type integers.
00:21
Then we will create main function.
00:29
Inside this, we will calculate the salary bonuses and call this multiply here.
00:38
Let's see the program.
00:50
So we are now in c+ + compiler.
00:56
So first we have to include some basic input output libraries.
01:02
So this is iostream.
01:05
Now after this header file, we will create a multiply function.
01:10
So in this multiply function, we will pass two parameters a1 and a2 of integer type.
01:17
Okay, then we will declare another variable a3.
01:21
So what we will do is we will add a1 plus a2 and pass it into a3.
01:26
Then we will return the addition of both parameters.
01:32
This a3.
01:35
Now after this, we will create our main function.
01:39
So in main function, what we will do is we will declare salary of type integer and assign this value to it and again variable of type integer bonus assign this variable and then we will call this multiply function passing our salary and bonuses as a parameter which will go in this multiply function salary will go as a1 and bonus will go as a2...