Past-paper question · 2014 October-November · Paper 23 · Q3(c)(iii)

Question 3(c)(iii) 2014 · October-November · Paper 23 · 5 marks

Original past-paper question for 3(C)(III)
Original past-paper question for 3(C)(III)
Original past-paper question for 3(C)(III)
Original past-paper question for 3(C)(III)
Reveal official mark-scheme answer

Official answer for Question 3

Part (c)

(iii)

✓
e.g. Pascal
✓
TilesForWidth := RoomWidth DIV 30;
✓
IF RoomWidth MOD 30 > 0
✓
THEN TilesForWidth := TilesForWidth + 1;
✓
TilesForLength := RoomLength DIV 30;
✓
IF RoomLength MOD 30 > 0
✓
THEN TilesForLength := TilesForLength + 1;
✓
TilesRequired := TilesForWidth * TilesForLength * 1.1; // +10%
✓
1 mark for calculating tiles for length
✓
1 mark for calculating tiles for width
✓
1 mark for rounding up when needed
✓
1 mark for multiplying TilesForWidth and TilesForLength

1 mark for adding 10% of total tiles required[5]

Mark scheme 9691_w14_ms_23.pdf →

Show text version of question

Question 3

Part (c)

(iii)

Question 3

Ahmed runs his own business. He lays floor tiles in rooms for customers. Ahmed wants a program that calculates how many tiles he needs when he inputs the measurements of the length and width of the room he is working on.

Part (c)

Ali is going to write the program for Ahmed. The size of one floor tile is 30 cm × 30 cm. Ali

knows that the following calculations are required: TilesForWidth ← RoomWidth DIV 30 TilesForLength ← RoomLength DIV 30 TilesRequired ← TilesForWidth * TilesForLength

(iii)

Ahmed wants the program to add an extra 10% to the number of tiles required in case any tiles get broken during the work. In a high-level language, write programming statements to calculate the total number of tiles required, TilesRequired, after the values for RoomLength and RoomWidth have been input and validated. Language ........................................................................................................................... Code .................................................................................................................................. ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... .......................................................................................................................................[5]

Question 10

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9691_w14_qp_23.pdf

Keep practising this topic