B 2.4.5 Worksheet 1 Java
Question 1 (a) The iterative method iter_d(int n) is shown, which prints numbers to the console: (i) State the output printed by the call iter_d(4);. [1] (ii) Construct the recursive method recur_d(int n) that performs the same function. [3] Question 2 (a) The iterative method iter_e(String s, int n) is shown, which repeats a string: (i) State the value returned by the call iter_e("Go", 3);. [1] (ii) Construct the...