Payroll Project:
Program #1:
Write a program to create a randomly accessible file for a simple payroll system. Note
that the employees are all hourly employees and only pay federal taxes. The file
should contain the following information (you decide on field lengths).
- Employee Number
- Employee Name
- Job Code
- Pay Hour
- Fed Tax percent withheld
- Federal Taxes withheld YTD
- Gross Pay YTD
Program #2:
Write a second program to maintain this file.
- You must be able to ADD employees to the file
- You must be able to DELETE employees from the file (you decide how to handle it - note
you should not use the record number of the record that was deleted when you add a new
employee)
- You must be able to CHANGE information about employees on the file
Program #3:
You need a program to randomly access the file by record number and do the following:
- Take in this weeks hours and calculate the pay. Show the weeks pay on the screen
- Update the Federal Taxes withheld YTD and the Gross Pay YTD with this weeks pay and
taxes.
- The job code should be used to display the persons job title on the form. You should
get this by accessing an array in your program. The array should be set up so that you
can redimension it and add job titless. If the job code on the file is not in the table,
you need to add the job to the array (this is done by redimensioning the array and adding
the job). Note that you have to decide how to handle this array but you should have data on
the file that will force you to redimension the array to add the job title.