Question 3(c)(iii) 2014 · October-November · Paper 23 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (c)
(iii)
1 mark for adding 10% of total tiles required[5]
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
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
