Question 1

Edexcel Computer Science June 2018 Paper 2GCSE9 marks

On the specification

(a)
6.3 Data types and structures
(b)
6.5 Operators
(c)
6.2 Program constructs6.4 Input and output
Question text

1 P-Cubed stores information about its employees on a server. (a) First name, last name, and start year are items that are stored as variables in an employee record. State two other items that need to be stored as variables for each employee. (2) 1 2 (b) Employees earn days of holiday based on how long they have worked at P-Cubed. • For the first two years, employees get 10 days of holiday each year. • In subsequent years, employees get an additional 0.5 days of holiday for each year worked. • The employee record has a variable called ‘startYear’. Construct a general expression to calculate the total number of days of holiday earned by an employee, for this year, who has worked for P-Cubed for more than two years. (4) (c) Each employee has an identification badge. There is a magnetic strip on the back of the badge. The badge is swiped in a card reader to get into the building. It can also be used to pay for meals in the company canteen, after it has been topped up with money. Complete the table to show an input, a process and an output. The first row has been done for you. (3) Input(s) Process Output(s) Location of card reader Find out if this employee can go True, if entry permitted Numeric code from through this door False, if entry not permitted magnetic strip Cost of canteen meal New balance, if paid Numeric code from Error, if not enough in account magnetic strip Top-up amount Add amount of top-up to make Numeric code from new balance magnetic strip Check account balance New balance (Total for Question 1 = 9 marks)