Question 19(d) 2016 · October-November · Paper 23 · 4 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 19
Part (d)
Question 19
ENDWHILE
Question 7
Part (d)
To code the ‘Search by product code’ procedure, Ahmed draws a structure chart showing the
different stages. The procedure uses the variables shown in the identifier table. Identifier Data type Description SearchCode STRING Product code input by the user Array index position for the ThisIndex INTEGER corresponding product ThisDescription STRING Product description found ThisRetailPrice REAL Product retail price found You can assume that before the procedure is run, all the product data is read from file PRODUCTS and then stored in three 1D arrays as described in part (c)(i). Label the structure chart to show the input(s) and output(s). Lookup by product code ...................... ...................... ...................... ................. ................ ...................... ...................... INPUT Search for OUTPUT details search criteria product code
Question 17
Why this question appears here
87% assigned-topic match · Data types and structures › Arrays
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 9608_w16_qp_23.pdf
