Quelpr

CAPE Computer Science Unit 1 · 2010 · Paper 2 · Question 5(c)

Write a C program that reads employee records from 'salary.dat' (surname up to 30 characters, hours worked, hourly rate, deductions; ending with sentinel 'ENDDATA'), and calculates and prints the gross salary for each employee, net pay for each employee, and overall total net pay.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 5(a)Explain TWO ways in which a programming language for a mobile device would differ from a programming language for a desktop computer.[4 marks]
  2. 5(b)How does a character variable differ from a string variable?[2 marks]

More practice: the rest of this paper · more Modular Programming and Data Structures questions · all CAPE Computer Science Unit 1 past papers