Past-paper question · 2015 May-June · Paper 41 · Q4(c)(i)

Question 4(c)(i) 2015 · May-June · Paper 41 · 4 marks

Original past-paper question for 4(C)(I)
Original past-paper question for 4(C)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 4(C)(I)

Official answer for Question 4

Part (c)

(i)

Part (c)

(i)

HoursWorked

Question 1

✓
HourlyPayRate

Question 1

✓
SetHoursWorked

Question 1

✓
CalculatePay : Override
✓
1 + 1
✓
SetPayRate

Question 1

✓
[max 4]

Mark scheme 9608_s15_ms_41.pdf →

Show text version of question

Question 4

Part (c)

(i)

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
  • and the number of hours worked during the month

  • SalariedEmployee who is paid a monthly wage which is one 12th of their annual salary

(i)

State the properties and/or methods required for the subclass HourlyPaidEmployee.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

......................................................................................................................................

[4]
Topic relevance

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

Keep practising this topic