Small company is moving all its employee data to a computer. to make
A small company is moving all its employee data to a computer. To make a smooth transition, a software program will permit the data entry personnel to enter data into a file. Design a program that writes the employees.dat file. The program should accept user input until the user indicates there are no more records to write. The Employees file contains four fields (see the Input File Description). The program will use the employee ID as criteria to determine a current employee. Validate the employee ID and employee wage fields per the requirements below. You may use any of the library functions presented in Chapter 6 of the textbook to assist in validation. Your validation routines should include error messages and allow the user to correct an input error. Use an array to hold the valid ID numbers. The Input File Description is the same for both programs.
Employee ID: May not be more than 10 characters long. The number must exist in the
list of valid employee ID’s.
Valid ID Numbers: RE49762358, PR79612485, OF45485761, RE68566547, PR15665984
Employee Wage: The number may not be zero nor larger than $45.50.
Field Description Data Type:
Employee first name String
Employee last name String
Employee ID # String
Employee Hourly Wage Real (2 decimal places)