Computer Science 9608 · 20

Further programming

192 questions. Open a question to solve it and check the official answer.

Reset
2015 May-June · Paper 41 · Q4(c)(i)

Programming paradigms · 4 marks · official answer ready

(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…

2015 May-June · Paper 41 · Q4(c)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…

2015 May-June · Paper 41 · Q4(d)

Programming paradigms · 1 mark · official answer ready

(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…

2015 May-June · Paper 42 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Draw an inheritance diagram for these classes. [3]

2015 May-June · Paper 42 · Q4(b)

Programming paradigms · 5 marks · official answer ready

(b) The design for the Employee class consists of: • properties • EmployeeName • EmployeeID • AmountPaidThisMonth • methods • SetEmployeeName • SetEmployeeID • CalculatePay Write …

2015 May-June · Paper 42 · Q4(c)(i)

Programming paradigms · 4 marks · official answer ready

(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…

2015 May-June · Paper 42 · Q4(c)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…

2015 May-June · Paper 42 · Q4(d)

Programming paradigms · 1 mark · official answer ready

(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…

2015 May-June · Paper 43 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Draw an inheritance diagram for these classes. [3]

2015 May-June · Paper 43 · Q4(b)

Programming paradigms · 5 marks · official answer ready

(b) The design for the Member class consists of • properties • MemberName • MemberID • SubscriptionPaid • methods • SetMemberName • SetMemberID • SetSubscriptionPaid 9 Write progr…

2015 May-June · Paper 43 · Q4(c)(i)

Programming paradigms · 3 marks · official answer ready

(i) Write program code for the class definition for the subclass JuniorMember. ....................................................................................................…

2015 May-June · Paper 43 · Q4(c)(ii)

Programming paradigms · 3 marks · official answer ready

(ii) Write program code to create a new instance of JuniorMember. Use identifier NewMember with the following data: name Ahmed with member ID 12347, born on 12/11/2001, who has pa…