Data transmission – IGCSE Computer Science (0478)
Question text
3
A check digit is to be used to validate an identification number on input. The identification number
contains five digits and the check digit.
The check digit is calculated by adding up the first five digits, dividing by 10 and taking the
remainder.
For example, 5 + 1 + 2 + 4 + 3 divided by 10 gives a remainder of 5 so the six-digit
identification number would be 512435
(a) (i)
Calculate the check digit for 69321
…
… [1]
Working space …
…
…
(ii)
State which of these identification numbers have incorrect check digits.
A 123455
B 691400
C 722855
D 231200
…
… [2]
Working space …
…
…
(b) (i)
Describe an input error that would not be found using this check digit.
…
…
…
… [2]
(ii)
Describe a more suitable algorithm to calculate the check digit for this identification
number.
…
…
…
… [2]
(c) Identify two other validation checks that could be used when inputting this identification
number.
1 …
…
2 …
…
[2]
Question text
3
This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over
25 kilograms is rejected. The trailer can take up to 100 kilograms.
START
TotalWeight
0
Reject
0
INPUT Weight
Yes
Is Weight
Reject
Reject + 1
˃ 25?
No
TotalWeight
TotalWeight + Weight
Is
No
TotalWeight
˃ 100?
Yes
TotalWeight
TotalWeight – Weight
OUTPUT 'Weight of items ' ’
TotalWeight, ' Number of
items rejected ',Reject
END
Complete the trace table for the input data:
13, 17, 26, 25, 5, 10, 15, 35, 20, 15
Weight
Reject
TotalWeight
OUTPUT
[5]