a. With the help of flowcharts, explain the difference between repetition and selection control structures. [4 Marks]
b. Study the algorithm in Figure 2. Perform the analysis step in the Software Development Method on the algorithm. Then, list ALL variables and their final value exactly before the termination of the program. [12 Marks]
1. set i=0, j=1
2. while i<3
2.1. i=i+1
2.2. j=1
2.3. while j<=3
2.3.1. j=j+1
2.3.2. answer=i*j
2.3.3. print answer
Figure 2: Pseudocode for question 2(b)
c. You are assigned to design a program for a bank. The program will continuously read the amount entered by the user as long as a positive integer or a zero input is entered, and finally display the total amount. Based on the description of the program, design its algorithm. [4 Marks]