Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 23 · Question 6

9618

As printed in the paper

The question as text

In some countries, on the third Sunday in March, daylight saving time begins when clocks move forward by one hour. A module AdjustClock() will take an integer parameter representing a year. The module will return an integer value representing the number of the day in March on which the clocks move forward. For example, the following line of pseudocode would assign DayNumber the value 20: DayNumber ← AdjustClock(2022) Write pseudocode for the function AdjustClock(). Date functions from the insert should be used in your solution. [7]

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.