Assignment No.: 5 Class: IMSE211-01 and IMSE211-02 Due Date: 2-12-97 Points: 10 Purpose: To write program that implements user defined procedures. 1. You are given a file containing the following information: First and last names, gender, number of dependents, hours worked, and pay rate per hour. 2. Anyone who works over 40 hours is to be paid one and half time the rate for the excess hours. 3. The following percentages are deducted from the gross income based on the number of dependents claimed. 4. If the employee is female a $100.00 is added to her wage after dependent taxes and $75.00 if male. Only F and M are recognized as valid gender types. All others are invalid and an appropriate message should be printed as shown in the output sample given below. Number of dependents Percent Deduction 1 to 3 1% 4 to 5 10% 6 to 9 15% 10 to 12 20% All other entries are invalid. If invalid entry is found the appropriate message should be printed as shown in the output below. 5. Requirements: a. Input is to come from a file named assign5.inp located on the network disk under my account directory. b. The input must be read from assign5.inp file. c. You must use the EOF condition to stop reading from the file. d. You must use at least one each of the following statements: 1. case. 2. if. 3. And at least one of the following statements: a. for. b. while. c. do while. 6. You are not to alter the input data. 7. Your program format should appear as follows: program assign5; Var declare variables here; procedure OutputHeading; begin end; procedure ComputeWage(list of formal parameters); begin end; procedure PrintResult(list of formal parameters); begin end; begin Readln(FirstName,Lastname, Id ,...etc. ); ComputeWage(list of actual parameters); PrintResult(list of actual parameters); end. 8. Note the data is read inside the main program. 9. The following is a partial listing showing you how your output should look like. Pete's Sweat Shop Payroll Information We Make It and You Take It Corporation First Name Last Name Gender Dependents Hours Rate Wage Gheresus Petros m 5 40.00 2.00 147.00 -7 is invalid dependent claim number Loren Mary F 1 60.00 4.50 411.85 Green Sue f 3 10.00 7.50 174.25 Smith Joe M 4 45.00 6.50 352.88 U is invalid gender type R is invalid gender type Pashkev Una F 10 55.00 9.50 575.00 Woods Sally F 2 22.00 5.60 221.97 10. Hand in: a. Title page. b. Output. c. One of the following (Not hand written): Pseudo code, an algorithm, or a flowchart. d. Source code. d. Make sure all papers are stapled.