Starting with page 9 of chapter 9A on Variables and assigment statements, read and answer the questions
value = 2*3; System.out.println( "value holds: " + value );
int quantity = 7; quantity = 13; System.out.println( "quantity holds: " + quantity );
sum = 2*sum ;
| Expression | 53 | 12 - 3) | x + 34 | *z 99 | sum + value |
|---|---|---|---|---|---|
| Correct or Not? |
( hours Worked * pay Rate) - deduction
| Expression | 16 - 12 / 4 | 2 + 6 / 2 | 8 + 4*2 | 8+4 * 2 | 12/2 - 3 | 6/8 + 2 |
|---|---|---|---|---|---|---|
| Value |
| Expression | 8 + 2 / 2 + 3 | (8 + 2) / (2 + 3) | (8 + 2) / 2 + 3 | 8 + 2 / (2 + 3) |
|---|---|---|---|---|
| Value |