Computer Science (2210) · Oct/Nov 2020 · PM 22

Cambridge Computer Science (2210) pm for paper 22, Oct/Nov 2020 — 2210/22/O/N/20, file 2210_w20_pm_22.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge O Level
COMPUTER SCIENCE

2210/22

Paper 2 Problem-solving and Programming

October/November 2020

PRE-RELEASE MATERIAL
* 1 0 3 5 5 4 4 7 5 0 *

No additional materials are needed.
This material should be given to the relevant teachers and candidates as soon as it has been
received at the centre.
INSTRUCTIONS
●
You should use this material in preparation for the examination.
●
You should attempt the practical programming tasks using your chosen high-level, procedural
programming language.

This document has 2 pages. Blank pages are indicated.
DC (KS) 205002
© UCLES 2020

[Turn over

www.dynamicpapers.com

2

Your preparation for the examination should include attempting the following practical tasks by writing and
testing a program or programs.
An online computer shop sells customised personal computers. Every computer sold includes a basic set of
components costing $200 and additional items can be added from the table:
Category
Case
Case
RAM
RAM
RAM
Main Hard Disk Drive
Main Hard Disk Drive
Main Hard Disk Drive
Solid State Drive
Solid State Drive
Second Hard Disk Drive
Second Hard Disk Drive
Second Hard Disk Drive
Optical Drive
Optical Drive
Operating System
Operating System

Item code
A1
A2
B1
B2
B3
C1
C2
C3
D1
D2
E1
E2
E3
F1
F2
G1
G2

Description
Compact
Tower
8 GB
16 GB
32 GB
1 TB HDD
2 TB HDD
4 TB HDD
240 GB SSD
480 GB SSD
1 TB HDD
2 TB HDD
4 TB HDD
DVD/Blu-Ray Player
DVD/Blu-Ray Re-writer
Standard Version
Professional Version

Price ($)
75.00
150.00
79.99
149.99
299.99
49.99
89.99
129.99
59.99
119.99
49.99
89.99
129.99
50.00
100.00
100.00
175.00

As well as the basic set of components every computer must include one case, one RAM and one Main
Hard Disk Drive from the table.
A computer is supplied with or without an Operating System.
Write and test a program or programs for the online computer shop.
•
Your program or programs must include appropriate prompts for the entry of data; data must be
validated on entry.
•
Error messages and other output need to be set out clearly and understandably.
•
All arrays, 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 – Setting up the system and ordering the main items.
Write a program to:
•
use arrays to store the item code, description and price
•
allow a customer to choose one case, one RAM and one Main Hard Disk Drive
•
calculate the price of the computer using the cost of the chosen items and the basic set of components
•
store and output the chosen items and the price of the computer.
Task 2 – Ordering additional items.
Extend TASK 1 to:
•
allow a customer to choose whether to purchase any items from the other categories – if so, which
item(s)
•
update the price of the computer
•
store and output the additional items and the new price of the computer.
Task 3 – Offering discounts.
Extend TASK 2 to:
•
apply a 5% discount to the price of the computer if the customer has bought only one additional item
•
apply a 10% discount to the price of the computer if the customer has bought two or more additional
items
•
output the amount of money saved and the new price of the computer after the discount.
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
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.

© UCLES 2020

2210/22/PRE/O/N/20

Advertisement