2210_w17_pm_23
2210_w17_pm_23
This material should be given to the relevant teachers and candidates as soon as it has been received
at the Centre.
Candidates should use this material in preparation for the examination. Candidates should attempt the
practical programming tasks using their chosen high-level, procedural programming language.
DC (SC) 150378
© UCLES 2017 [Turn over
2
In preparation for the examination candidates should attempt the following practical tasks by writing
and testing a program or programs.
A small airfield operates a flying club where people can take a short flight to see if they would like flying
lessons. The owner of the airfield has asked you to write a program to organise the flight bookings. The
airfield operates three different planes and offers either a 30 minute or a 60 minute flight.
After each flight, 30 minutes must be allowed for refuelling and safety checks before the next flight can
take off. All planes offer both 30 minute and 60 minute flights, but, for the purpose of this activity, they
will not be mixed on a given day, e.g. the 2 seater will offer 30 minute flights ONLY on one day and
60 minute flights ONLY on another day.
• Your program must include appropriate prompts for the entry of data.
• Error messages and other output need to be set out clearly and understandably.
• All variables, constants and other identifiers must have meaningful names.
You will need to complete these three tasks. Each task must be fully tested.
Assume that the flights take place between 08:00 and 18:00. Write a program that will work out the
maximum income that can be generated by each plane in a day for each type of flight. The program
should allow you to:
Write a program to store bookings for each plane and to allow you to find which planes are available
at a given time slot during the day. The program should calculate the actual number of flights taken by
each plane in that day.
Modify TASK 2 so that it will calculate the total amount of money taken in a day for each plane, as well
as the overall daily total for all three planes, and output the results.
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable 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.