June 2023 QP - Component 2 Eduqas Computer Science AS-level
June 2023 QP - Component 2 Eduqas Computer Science AS-level
GCE AS
B500U20-1 S23-B500U20-1
B50 0U201
01
INSTRUCTIONS TO CANDIDATES
Answer ALL of questions 1, 2, 3, 4 and 5.
You will need to record all of your answers to questions 1, 2, 3 and 4 in a single word-processed
document.
Answer only ONE section of question 5. This is the section which requires you to use the
Integrated Development Environment (IDE) of your chosen programming language.
Scenario
SpringZone
Trampoline Park
The manager of SpringZone has decided to commission a new computerised system to store
details such as first name, surname and contact details.
1. SpringZone would like to create an entity relationship diagram for the main relationships in the
system. Referring to the scenario, create an entity relationship diagram for the system. Clearly
indicate any primary or foreign keys. [8]
2. SpringZone has decided to store adults’ details in a database table. Referring to the scenario,
copy and complete the following data structure table. [5]
Key field
Fieldname Data Type Field Length Validation
(Yes/No)
B50 0U201
3. SpringZone customers (adults) provide a completed registration form to the receptionist. The
03
receptionist provides a confirmation receipt to the customer. The receptionist also forwards
a copy of the registration form to the health and safety officer. The health and safety officer
provides an acknowledgement receipt to the receptionist.
Represent the system described above in an appropriate diagrammatic form showing the flow
of data. [7]
4. (a) SpringZone stores the prices for booking time within the trampoline park in an array.
The prices are calculated depending on how busy the time of year traditionally is for
bookings. SpringZone uses an algorithm to populate the array. The algorithm also
provides a discount for longer bookings. (For parties etc.)
Copy and complete the table to show the outputs of the algorithm with the input
timeOfYear = 2 [8]
(b) Each SpringZone customer (adult) is to be given a unique five-digit account number.
This consists of a four-digit code and a check digit. To calculate the check digit an
algorithm follows the following steps:
• the single digit produced, for example, 2124 gives the check digit 9
• the last digit of the double-digit number produced, for example, 2546 gives
17, so the check digit is 7.
Using a recognised convention, design an algorithm to calculate the check digit. Your
algorithm should be written using self-documenting identifiers. [8]
5. Select the programming language of your choice from section (a), (b) or (c) and answer all
questions in your chosen section.
SpringZone wants a computer system to be developed using Visual Basic that will be
used to:
Complete this code.[8]
(iii) Using the internal facility of the IDE, add annotation to your code from question
5(a)(ii) that would clearly explain your program to another software developer. [4]
Save your annotations in the same file as in 5(a)(ii) above.
(b) Java
SpringZone wants a computer system to be developed using Java that will be used to:
Complete this code.[8]
(iii) Using the internal facility of the IDE, add annotation to your code from question
5(b)(ii) that would clearly explain your program to another software developer. [4]
Save your annotations in the same file as in 5(b)(ii) above.
(c) Python
SpringZone wants a computer system to be developed using Python that will be used
to:
(iii) Using the internal facility of the IDE, add annotation to your code from question
5(c)(ii) that would clearly explain your program to another software developer. [4]
Save your annotations in the same file as in 5(c)(ii) above.
END OF PAPER