•Problem: A small
company needs an interactive program to figure its
weekly payroll. The input data and each employee’s
wages should be saved in a secondary storage file, and the total wages for the week should be
displayed on the screen so that the payroll
clerk can transfer the appropriate
amount into the payroll account.
–Data consists of id,
hourly pay rate, and hours worked
–Regular wage for 40
hours, time and a half after that
–Store results in a
file called payFile
–Use id 0 to indicate
end of data since it is not a valid id