Question 4(b) 2015 · May-June · Paper 41 · 5 marks
Reveal official mark-scheme answer

Official answer for Question 4
Part (b)
Part (b)
Example Pascal
Question 41
Show text version of question
Question 4
Part (b)
Question 4
A payroll program is to be written using an object-oriented programming language. An Employee
class is designed. Two subclasses have been identified:
- HourlyPaidEmployee who is paid a monthly wage calculated from their hourly rate of pay
- SalariedEmployee who is paid a monthly wage which is one 12th of their annual salary
and the number of hours worked during the month
Part (b)
The design for the Employee class consists of:
- properties
- EmployeeName
- EmployeeID
- AmountPaidThisMonth
- methods
- SetEmployeeName
- SetEmployeeID
- CalculatePay
Write program code for the class definition of the superclass Employee.
Programming language .............................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
..............................................................................................................................................
Question 9
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_s15_qp_41.pdf
