Past-paper question · 2015 May-June · Paper 23 · Q5(c)(iii)

Question 5(c)(iii) 2015 · May-June · Paper 23 · 1 mark

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

Official answer for Question 5

Part (c)

(iii)

(iii)

(CALL) AnalyseProductionData(7, 13)

[1]

Mark scheme 9608_s15_ms_23.pdf →

Show text version of question

Question 5

Part (c)

(iii)

Question 5

A firm employs workers who assemble amplifiers. Each member of staff works an agreed number

of hours each day.

The firm records the number of completed amplifiers made by each employee each day.

Management monitor the performance of all its workers.

Production data was collected for 3 workers over 4 days.

Daily hours worked Production data Worker 1 5 Worker 1 Worker 2 Worker 3 Worker 2 10 Day 1 10 20 9

Worker 3 10 Day 2 11 16 11

Day 3 10 24 13

Day 4 14 20 17

A
program is to be written to process the production data.

An experienced programmer suggests that the pseudocode would be best implemented as a procedure AnalyseProductionData.

Assume that both arrays, DailyHoursWorked and ProductionData, are available to the procedure from the main program and they are of the appropriate size.

PROCEDURE AnalyseProductionData(NumDays : INTEGER, NumWorkers : INTEGER)

DECLARE ........................................................................................................................................

DECLARE ...................................................................................................................................... .

DECLARE ....................................................................................................................................... .

DECLARE ...................................................................................................................................... .

FOR WorkerNum 1 TO 3 WorkerTotal[WorkerNum] 0 ENDFOR

FOR WorkerNum 1 TO 3 FOR DayNum 1 TO 4 WorkerTotal[WorkerNum] WorkerTotal[WorkerNum] + ProductionData[DayNum, WorkerNum] ENDFOR ENDFOR

FOR WorkerNum 1 TO 3 WorkerAverage WorkerTotal[WorkerNum]/ (4 * DailyHoursWorked [WorkerNum]) IF WorkerAverage < 2 THEN OUTPUT "Investigate", WorkerNum ENDIF ENDFOR

ENDPROCEDURE

(iii)

Write the statement for a procedure call which processes data for 7 days for 13 workers.

.......................................................................................................................................[1]

Question 15

Question 16

effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.

Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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_s15_qp_23.pdf

Keep practising this topic