Post a New Question

Java

posted by .

I need help putting the following trace into pseudocode


1 public class testOperators
2 {
3 public static void main(String[] args)
4 {
5 int x;
6 int y = 12
7 double z = 13.0;
8 x = 14
9 System.out.println(“x + y + z = “ + (x + y +z));
10 x += y;
11 y--;
12 z++;
13 z *= x;
14 System.out.println(“x + y + z = “ + (x + y + z));
15 }
16 }

Trace:
Line # X Y Z Output
5 ?
6 12
7 13.0
8 14
9 x + y + z = 39.0
10 26
11 11
12 14.0
13 364

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

More Related Questions

Post a New Question