Question 1(a)(i) 2014 · May-June · Paper 23 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
(i)
Part (a)
(i)
Show text version of question
Question 1
Part (a)
(i)
Sheena has inherited a recipe book from her grandmother. All the recipes give ingredient measurements in ounces. Sheena wants to write a program to produce a conversion table that helps her use the correct weight in grams.
To convert ounces into grams: 1 ounce is 28.35 grams.
The conversion table will show the number of grams to the nearest whole number:
Conversion Table
Ounces Grams
1 28
2 57
: : : :
16 454
(i)
Sheena writes pseudocode that uses the variables in the table below. Complete the
identifier table.
Identifier Data type Description
Variable used as control Ounces variable in FOR loop Grams Variable used for storing result of conversion calculation
Why this question appears here
71% assigned-topic match · Data types and structures › Data types and records
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_s14_qp_23.pdf
