Question 6: The output of the program is: 102 Let a(0) = 2 Since a:= a + 4 therefore a(1) = 2 + 4x1 a(2) = a(1) + 4 = 2 + 4 + 4 = 2 + 4x2 a(3) = a(2) + 4 = 2 + 4x2 +4 = 2 + 4x3 a(n) = 2 + 4xn where n is an integer Since a(n) > 99, 2+4n >99 n > 24.25 n= 25 Therefore a(n) = 2 + 4x25 = 102 Question 7: The output of the program is: 36 When s=0, h=1, k=3, s= 0+1+3 = 4 k=2, s=4+1+2 = 7 k=1, s=7+1+1 = 9 h=2 k=3, s=9+2+3 =14 k=2, s=14+2+2=18 k=1, s=18+2+1=21 h=3 k=3, s=21+3=3=27 k=2, s=27+3+2= 32 k=1, s=32+3+1=36