14.7k views
3 votes
What would the output be if we replaced the math expression in the last line with dependents * ((yearsOnJob - 1) * 4) - 6 and the value of dependents was 3 instead?

User Joalcava
by
4.1k points

1 Answer

1 vote

Answer:

Please check the explanation.

Step-by-step explanation:

Let x=dependents * ((yearsOnJob - 1) * 4) - 6

where dependents=3

Lets supppose year on job 3

then

x=( 3*((3-1)*4)-6

x= 3*8 -6

= 24-6

=18

And similarly, we can calculate the value of arithmetic expression all the time.

User Marshalee
by
3.3k points