Past-paper question · 2019 October-November · Paper 42 · Q1(c)(i)

Question 1(c)(i) 2019 · October-November · Paper 42 · 3 marks

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

Official answer for Question 1

Part (c)

(i)

Question 3

✓
1 mark per bullet point
✓
Employee
✓
•
✓
inheritance (arrow filled or unfilled)
✓
EmployeeID : STRING
✓
•
✓
constructor and SetHoursThisWeek method for
✓
Name : STRING
✓
ApprenticeshipEmployee
✓
Address : STRING
✓
•
✓
DateOfBirth : DATE
✓
HourlyRate and HoursThisWeek attributes for
✓
ApprenticeshipEmployee
✓
Constructor ()
✓
GetEmployeeID()
✓
GetName()
✓
GetAddress()
✓
GetDateOfBirth()
✓
SetEmployeeID()
✓
SetName()
✓
SetAddress()
✓
SetDateOfBirth()
✓
SalaryEmployee
✓
ApprenticeshipEmployee
✓
MonthlyPayment : CURRENCY
✓
HourlyRate : CURRENCY/REAL
✓
HoursThisMonth : REAL
✓
HoursThisWeek : REAL/INTEGER
✓
PublicHoliday : BOOLEAN
✓
Pension : BOOLEAN
✓
Constructor()
✓
Constructor()
✓
GetMonthlyPayment()
✓
SetHoursThisWeek()
✓
GetPension()
✓
GetHourlyRate()
✓
GetPublicHoliday()
✓
GetHoursThisWeek()
✓
GetHoursThisMonth()
✓
SetHourlyRate()
✓
SetMonthlyPayment()
✓
SetPension()
✓
SetPublicHoliday()
✓
SetHoursThisMonth()
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w19_ms_42.pdf →

Show text version of question

Question 1

Part (c)

(i)

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.

(i)

Complete the following class diagram for the program.

Employee EmployeeID : STRING Name : STRING Address : STRING DateOfBirth : Date Constructor() GetEmployeeID() GetName() GetAddress() GetDateOfBirth() SetEmployeeID() SetName() SetAddress() SetDateOfBirth()

SalaryEmployee ApprenticeshipEmployee MonthlyPayment : CURRENCY HoursThisMonth: REAL ........................................................ PublicHoliday : BOOLEAN ........................................................ Pension : BOOLEAN Constructor() GetMonthlyPayment() ........................................................ GetHoursThisMonth() ........................................................ GetPublicHoliday() GetHourlyRate() GetPension() GetHoursThisWeek() SetMonthlyPayment() SetHourlyRate() SetHoursThisMonth() SetPublicHoliday() SetPension()

[3]

Question 5

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_w19_qp_42.pdf

Keep practising this topic