0% found this document useful (0 votes)
12 views2 pages

2210_w17_pm_23

Uploaded by

Izumi Here
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

2210_w17_pm_23

Uploaded by

Izumi Here
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Cambridge International Examinations

Cambridge Ordinary Level

COMPUTER SCIENCE 2210/23


Paper 2 Problem-solving and Programming October/November 2017
PRE-RELEASE MATERIAL
No Additional Materials are required.
* 1 1 1 8 6 3 5 8 3 0 *

This material should be given to the relevant teachers and candidates as soon as it has been received
at the Centre.

READ THESE INSTRUCTIONS FIRST

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.

This document consists of 2 printed pages.

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.

The following table shows the tariff:

Length of Flight 2 Seater Plane 4 Seater Plane Historic Plane


30 minutes $100 $120 $300
60 minutes $150 $200 $500

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.

Write and test a program for the owner of the airfield.

• 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.

TASK 1 – Work out the maximum income.

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:

• input the type of plane


• input the length of flight
• calculate the maximum number of flights in a day
• output the total possible income per day for the choice of plane and length of flight

TASK 2 – Record bookings.

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.

TASK 3 – Work out income.

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.

© UCLES 2017 2210/23/PRE/O/N/17

You might also like