Question 1

Edexcel Computer Science June 2019 Paper 2GCSE6 marks

On the specification

(a)
6.3 Data types and structures
(b)
6.3 Data types and structures
(c)
6.5 Operators
Question text

1 Margaret has developed her own recipes for different flavours of ice cream. The recipes use only natural ingredients. Here is Margaret’s recipe for strawberry ice cream. Margaret’s Ice Cream Kiosk Strawberry ice cream ingredients 0.8 litres – Full fat milk 0.9 litres – Cream 0.3 kilograms – Sugar 12 Whole eggs 1.4 kilograms – Strawberries 15 millilitres – Vanilla She stores all her recipes on a computer. One variable is needed to hold the amount of fruit and another is needed to hold the number of eggs. (a) State two additional variables that need to be created to store the recipes for ice cream. (2) 1 2 (b) State the data type needed to store values for the weight of fruit and the number of eggs in a recipe. (2) Weight of fruit Number of eggs (c) The process for making a single batch of ice cream is shown in the table. Action Time in minutes Pre-freeze the ice cream maker 10 Add ingredients 5 Churn the ingredients into ice cream 30 Transfer the ice cream to tubs 5 Clean the machine 15 The ice cream maker must be sterilised at the end of each day. This takes 20 minutes. Construct a general expression to show how many batches of ice cream can be made in any number of hours. (2) (Total for Question 1 = 6 marks)