Menu

(Solved) : Value Destination Variable Final Assignment Statement Given Define Pi 314159 Define Maxi 1 Q44138313 . . .

What is the value of the destination variable in the finalassignment statement given:

#define PI 3.14159
#define MAX_I 1000
double x, y;  
int a, b, i;
a = 7;  
b = 3;  
y = 2.00;  

i = (MAX_I – 990) / a;

I tried -1, but it was counted wrong.  

The feedback I received: Complete the operationin parentheses first.

When both operands of the division operation are integers, theresulting value is the trucated integer result of dividing thefirst operand by the second.

The destination variable, x, is a double so the value should beexpressed to 2 decimal places.

Expert Answer


Answer to What is the value of the destination variable in the final assignment statement given: #define PI 3.14159 #define MAX_I …

OR