1.
Study the flowchart below and use it to answer the questions that follow
Start
Input a,
b
T=a2+b2 Add 1 to
a
Add 1 to
No
T > 90
Yes
Print a, b
Stop
(i) Given that the user keyed in 3 as the value of a and 1 as the value of b get the final
output of the flowchart
A B T
3 1 10
4 2 20
5 3 34
6 4 52
7 5 74
8 6 100
Award ½ mark for each step max 3
2. Study the FLOWCHART below and answer the questions that follow.
Start
N=0
X=0
Is N < 3
No
Yes
N=N+1 X=X+1
Print N, X
No Yes
Is X < 2
Stop
(i) What will be the output from the program (2 marks)
X-4
N–3
ii) Implement the above a program flowchart TO PSEUDOCODE statements [4 marks]
3. Study the following FLOWCHART and answer the questions that follow
Start
X=3
Y=4
Count <= 10?
X=x+1
Y = (Y + 2) – ½
Z=X+Y
Print X, Y and Z
Stop
What is the value for y and z [1 mark]
y = 112.5 and z = 120.5
ii) Implement the above a program flowchart TO PSEUDOCODE statements [6 marks]
4. Study the flowchart below and use it to answer the questions that follows;
(i) State the output of the above program flowchart for the inputs given below (3
Marks)
Amount = 15,000, 14,000 and 23,000 respectively
(ii) State the purpose of the flowchart (1 Mark)
The flowchart is used to check the account balance and allow withdrawal if the
balance is more than 0. Withdrawal is done only three times