Note AcademyNote Academy

Computer Science · May / June 2016 · Paper 22 · Question 3

2210

As printed in the paper

The question as text

The flowchart below calculates the number of tins of paint required to paint walls. The flowchart inputs the height and width of a wall in metres, the number of doors and the number of windows. A value of –1 for the height stops the input. INPUT Height, Width, Doors, Windows Area 0 Tins 0 START END OUTPUT Tins Is Height = –1? Area Area + Height * Width – Doors * 1.5 – Windows No Yes Tins INT(Area/10 + 0.5) Complete the trace table for the input data: 3, 5, 1, 0, 3, 7, 0, 0, 3, 5, 0, 3, 3, 7, 1, 1, –1, 0, 0, 0 Area Tins Height Width Doors Windows [4]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

Area Tins Height Width Doors Windows 0 0 5 1 0 13.5 7 0 0 34.5 5 0 46.5 7 1 1 65 –1 0 0 0 7 (2 marks) 1 mark 0, 13.5 1 mark for rest ✓(1 mark) ✓ (1 mark) [4]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.