ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2022 Question 4

3 marks · Fixed and conditional loops

State which type of loop is used in this design. When a train is delayed, passengers are entitled to a 25% refund on the cost of their ticket. Using a design technique of your choice, show how the refund would be calculated. A train company is designing a program to handle passenger complaints. Part of the design is shown below. ... is the complaint due to a delay? yes no review the complaint display outcome of complaint is passenger no satisfied with outcome? yes display “Thank you, your case is now closed”

Marking scheme

conditional Must be “type” of loop. Do not accept examples of conditional loops. One mark each for • use of an appropriate variable/description of ticket cost • calculate refund (25% of initial ticket cost) Calculation of 25% may vary.

Previous question: N5 Computing Science 2022 Question 3

Next question: N5 Computing Science 2022 Question 5