For each of the Java expressions below:
Be sure that your tree accurately reflects how Java would evaluate the expression.
Given the following variables:
int ix = 7; double od = 4.0; int oo = 2; double hidde = 2.0; int ic = 7;
...draw the AST and evaluation results for the following expression:
ix / od * oo / 3 + hidde % ic * 8 % 2
Things to double-check in your solution:
Given the following variables:
int io = 8; int sont = 7; boolean pio = true; double slea = 2.0; double rioac = 2.0; int proungfi = 8;
...draw the AST and evaluation results for the following expression:
8 != io != 6 > sont == pio || slea <= 0 || rioac >= 7 != 0 >= 5 != proungfi > 7
Things to double-check in your solution:
Draw the AST and evaluation results for the following expression:
(0 + 1 + 2 + 3 + 4) + "5" + "6" + 7 + 8
Things to double-check in your solution:
Related puzzles: