Part I. Integer and float arithmetic.

For each of these assignment statements, what will the result be in
iResult
or fResult? First compute the results manually and fill in
the
"predicted results" column of the table. Then, use the program programs53/Arithmetic.java
as a way to test your predictions and fill in the "actual results"
column.
Use the fourth column for any comments you may have. Make sure you
understand
why
each actual result is what it is!

Assignment Statement

Predicted Result

Actual Result

Explanatory Comments

iResult = num1 / num4;

fResult = num1 / num4;

iResult = num3 / num4;

fResult = num3 / num4;

fResult = val1 / num4;

fResult = val1 / val2;

iResult = num1 / num2;

fResult = (double) num1 / num2;

fResult = num1 / (double) num2;

fResult = (double) (num1 / num2);

iResult = (int) (val1 / num4);

fResult = (int) (val1 / num4);

fResult = (int) ((double) num1 / num2);

iResult = num3 % num4;

iResult = num 2 % num3;

iResult = num3 % num2;

iResult = num2 % num4;

Part II: Operator precedence.

Now do the same with these assignment statements, given the
declarations: