ANSWERS FOR Trace2.txt EXAMPLES Example 1. ========== x y Output: -------+------- 60 72 132 5 8 18 24 60 72 Example 2. ========== x y n Output with input 2: -------+-------+------ 15 45 135 5 3 2 15 3 2 45 3 2 135 3 2 x y n Output with input 4: -------+-------+------ 25 125 5 3 4 25 9 4 125 27 4 Example 3. ========== n a Output with input "abc": -------+-------- abc2#b4#26#b 2 "abc" 4 "abc2#b" 6 "abc2#b4#2" 8 "abc2#b4#26#b" Example 4. ========== x y z (x + y + z) % 3 == 1 -------+--------+-------+--------------------- 3 5 9 false Output: No Example 5. ========== x y x > 1 && y > 1 (x + y) % 2 == 0 -------+-------+---------------+----------------- 100 74 true true 50 24 true true 25 8 true false 8 1 false Output: 26 17 7 Example 6. ========== input word word.length() Output --------+--------+-------------+--------------------- racoon "racoon" 6 The output is racoon. frog "frog" 4 The output is ****. mouse "mouse" 5 The output is mouse. dog "dog" 3 The output is dog. wolf "wolf" 4 The output is ****. bear "bear" 4 The output is ****. Example 7. ========== x y i i < y + 2 Output: ------+-----+------+---------- 4 7 10 13 16 19 4 17 4 true 22 4 17 7 true 4 17 10 true 4 17 13 true 4 17 16 true 4 17 19 true 4 17 22 false Example 8. ========== i j i > 1 Output: 6 -------+--------+------- 73 100 true 24 50 true 8 25 true 2 12 true 0 6 false Example 9. ========== word c letter i n i