Respuesta :

Answer:

finalResult = (num1 + num2 ) / 3

Explanation:

finalResult, num1 and num2 are all variables and it is assumed that they have all been declared with their correct data types.

finalResult is said to be the result of the sum of the two other variables, num1 and num2 divided by 3.

i.e

(num1 + num2) / 3

Note : It is essential to put the sum of num1 and num2 in bracket so as to ensure that the addition operation is performed first before the division operation. Not putting in bracket will make the division operation to be performed first which will not be the solution to the problem at hand.

Once the operations (addition and division) have been performed, then the result is assigned to the variable, finalResult, as follows:

finalResult = (num1 + num2 ) / 3         --------- (1)

Therefore, if num1 = 4 and num2 = 5, finalResult according to the equation(1) above gives;

finalResult = (4 + 5) / 3

finalResult = 9 / 3

finalResult = 3

Hope this helps!

ACCESS MORE