I am completely stuck. I have been at this for hours. Trying to teach myself with my books. This is the "hands on" project part of the book and I just can't figure it out.
You will create an application that reads two sequential files. The first file contains employee information. The second file contains payroll information for each employee. The record formats are listed below.
Employee File
*Employee ID - Integer
*Name - String
*Address - String
*SSN - String
Payroll File
*Employee ID - Integer
*Payroll Date - Date
*Gross Pay - Single
*Withholding Tax - Single
*FICA Tax - Single
*Net Pay - Single
1. Create the two structures and module-level dynamic arrays to store the data described above.
2. Create an Open Files button. In the Click event handler, write the code to open the employee and the payroll file and store the records in an array. As you read each employee records, write the statement to add the employee ID numbers to the combo box.
3. Write the code so that when the user clicks an item in the combo box, the employee name, address, and ssn appear in the labels below the combo box.
4. Write the code to display the payroll information for the selected employee ID.
5. Write the code to calculate the totals for each list box and display the values in labels below the list boxes.