Question 1(c)(v) 2019 · October-November · Paper 42 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (c)
(v)
Question 1
mark per bullet point
Question 4
Show text version of question
Question 1
Part (c)
(v)
Question 1
A technology company needs software to calculate how much each employee should be paid.
The company decides to implement a program for the software using object-oriented programming (OOP).
Each employee has a unique employee ID, name, address and date of birth. There are two types of employee: salary and apprenticeship.
Salaried employees are paid a fixed monthly payment. The hours a salary employee works in a month are recorded to calculate bonus payments. They may receive bonus payments and make pension payments (given in part(b)).
Apprenticeship employees are paid weekly. They receive an hourly rate of pay. Apprenticeship employees do not receive bonus payments or make pension payments.
(v)
Write program code for the SetPension()method in the SalaryEmployee()class.
- The method takes a new value for Pension as a parameter.
- If the parameter’s value is valid (it is TRUE or FALSE), the method returns TRUE and
- Otherwise the method returns FALSE and does not set Pension.
sets the parameter’s value.
Programming language .....................................................................................................
Program code
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.....................................................................................................................................
Question 7
Question 1 continues on the next page.
Question 8
Why this question appears here
98% assigned-topic match · Further programming › Programming paradigms
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w19_qp_42.pdf
