Past-paper question · 2018 May-June · Paper 22 · Q1(c)

Question 1(c) 2018 · May-June · Paper 22 · 5 marks

Original past-paper question for 1(C)
Original past-paper question for 1(C)
Reveal official mark-scheme answer Official mark-scheme answer for 1(C)

Official answer for Question 1

Part (c)

✓
Any five from:

Question 5

✓
1 Initialisation for total weekly volume
✓
2 loop control
✓
3 calculation of running total for yield
✓
4 calculation of average yield
✓
5 output total and average yield per week with message outside loop
✓
6 value(s) rounded
✓
Sample answer
✓
total ← 0
✓
FOR counter ← 1 TO numCows
✓
total ← total + mondayMorning(counter)
✓
total ← total + mondayEvening(counter)
✓
total ← total + tuesdayMorning(counter)
✓
total ← total + tuesdayEvening (counter)
✓
total ← total + wednesdayMorning(counter)
✓
total ← total + wednesdayEvening (counter)
✓
total ← total + thursdayMorning(counter)
✓
total ← total + thursdayEvening (counter)
✓
total ← total + fridayMorning(counter)
✓
total ← total + fridayEvening (counter)
✓
total ← total + saturdayMorning(counter)
✓
total ← total + saturdayEvening (counter)
✓
total ← total + sundayMorning(counter)
✓
total ← total + sundayEvening(counter)
✓
NEXT counter
✓
Average ← ROUND(total/numCows)
✓
OUTPUT "Total volume of milk for week ", ROUND(total)
✓
OUTPUT "Average weekly yield ", average

Mark scheme 2210_s18_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

Write an algorithm for Task 2, using either pseudocode, programming statements or a

flowchart. Assume that Task 1 has been completed.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[5]

Question 5

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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 2210_s18_qp_22.pdf

Keep practising this topic