CWSS 2020 Computing P1 Solution
CWSS 2020 Computing P1 Solution
Outputs:
- Name of students from that primary school
- Number of students from that primary school
Processes required:
- Search for all students from that primary school
- Count the number of students who are from that primary school
7 NOR
(a)
7 A B X
(b) 0 0 1
0 1 1
1 0 1
1 1 0
Qn Answer Marks
7 D AND NOT T [1m]
(c) D
AND L [1m]
T
L X
OR [1m]
Total = 7
START
newstrg = “”
OUTPUT
“Enter a string”
INPUT strg
OUTPUT “Enter a
character to remove”
INPUT chr
x=1
Y
x > length(strg)?
N
OUTPUT newstrg
strg[x] ! N
END == chr?
Y
newstrg = newstrg + chr
x=x+1