Computer Science (2210) · May/June 2018 · PM 21

Cambridge Computer Science (2210) pm for paper 21, May/June 2018 — 2210/21/M/J/18, file 2210_s18_pm_21.pdf.

Advertisement
Loading the paper…
Text of this paper

Cambridge International Examinations
Cambridge Ordinary Level

2210/21

COMPUTER SCIENCE
Paper 2 Problem-solving and Programming

May/June 2018

PRE-RELEASE MATERIAL
* 7 4 0 3 9 5 8 4 0 3 *

No Additional Materials are required.
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 (KS) 160592
© UCLES 2018

[Turn over

2
In preparation for the examination candidates should attempt the following practical tasks by writing
and testing a program or programs.
A computer shop will build a computer from components to meet a customer’s requirements. For each
request for a computer to be built, an estimate of the cost is produced. The component stock level is
checked; if all the components are in stock, a firm order to build the computer can be placed. A program
is required to work out the cost of the computer, update the stock levels and provide a daily summary
of orders for the shop owner.
Write and test a program or programs for the computer shop owner.

•
•
•

Your program or programs 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 – Produce an estimate.
Write a program for TASK 1 to calculate the cost of building a computer using these components:
Component

Choices

Prices in $

Processor

p3 / p5 / p7

100 / 120 / 200

RAM

16 GB / 32 GB

75 / 150

Storage

1 TB / 2 TB

50 / 100

Screen

19" / 23"

65 / 120

Case

Mini Tower / Midi Tower

40 / 70

USB ports

2 ports / 4 ports

10 / 20

The customer makes a choice for each component and an estimate is produced. The estimate must
show a unique estimate number, the components chosen and the price of each component. The
estimate must also show the total cost of the computer, which is calculated as the sum of the cost of
the components chosen plus 20%.
TASK 2 – Place an order.
Using your estimate from TASK 1, check if the components required are in stock. If all the components
are in stock then update the stock levels. Add the unique estimate number to the list of order numbers.
Add the customer’s details and today’s date to the estimate details to finalise the order. Print two
copies of the order, one for the customer and one for the shop.
TASK 3 –Summarise the day’s orders.
Extend TASK 2 to provide an end of day summary showing the number of orders made, the total
number of each component sold and the value of the orders.
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 2018

2210/21/PRE/M/J/18

Advertisement