Respuesta :

Answer:

20.0

Explanation:

3+2*6 = 9

4 + 3/2 = 5.5 but, since b is an int value, it will round down to a 5

7%4+3 = 3 +3 = 6. the % symbol will give the remainder of the quotient

9 + 5 + 6 = 20. It becomes 20.0 because d is a double value.

The value of d after the code segment is executed is 391.0

How to determine the value of d?

To do this, we evaluate the code statements one after the other.

So, we have:

int a = 3 + 2*3;

This gives a = 9

int b = 4 + 372;

This gives b = 376

int c = 7 % 4 + 3;

This gives c = 6

For double d = a + b + c;

Substitute a = 9, b = 376 and c = 6 in d = a + b + c;

So, we have:

d = 9 + 376 + 6

Evaluate the sum

d = 391.0

Hence, the value of d after the code segment is executed is 391.0

Read more about computer programs at:

https://brainly.com/question/23275071

ACCESS MORE
EDU ACCESS