Computer Science · May / June 2017 · Paper 22 · Question 3
2210
As printed in the paper
The question as text
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. INPUT Weight TotalWeight 0 Reject 0 START END OUTPUT 'Weight of items ' TotalWeight, ' Number of’ items rejected ',Reject Is Weight ˃ 25? Is TotalWeight ˃ 100? TotalWeight TotalWeight + Weight TotalWeight TotalWeight – Weight Yes Yes No No Reject Reject + 1 9 Complete the trace table for the input data: 13, 17, 26, 25, 5, 10, 15, 35, 20, 15 Weight Reject TotalWeight OUTPUT [5]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

