Note AcademyNote Academy

Computer Science · Oct / Nov 2019 · Paper 22 · Question 5

2210

As printed in the paper

The question as text

A programmer writes a program to weigh baskets of fruit in grams, keeping a total of the weight and counting the number of baskets. The total weight is stored in a variable Total and the number of baskets is stored in a variable BasketCount. Explain, including examples of programming statements, how totalling and counting could be used in this program. Totalling Counting [4]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.