ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
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”
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.