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
<em>Note </em>: 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
<em>Hope this helps!</em>
<span>One of the main responsiblities is to provide a workplace free from serious recognized hazards and comply with standards of the </span><span>OSH Act.
That's all I know, hope this helps...
</span>
Name
I am not sure about it
Answer:
Option (B) and (C) is the correct option to the following question.
Explanation:
Because the function is the module of the program and we call that function again and again anywhere whenever we need that function in the program.
Function is used to carry out any operation which is used in the program many times and it creates the program short and simple.
<u>For example</u>: if we need to add or multiply two numbers many times in the program then, we create one or two functions for addition and subtraction or one program for both, when we need them we call them.
To make sure that they can get there money correctly and count each costumer to get a sum of the days work