Assignment No: 3 Class : IMSE-211 Due Date : 1-29-97 Points : 10 Purpose : To write a program that determines wages that includes over-time pay. Given: The following input data: Name Id Hours_Worked Pay_Rate_Per_Hour Gheresus 123 40.00 1.50 Eyasu 124 70.00 2.00 Tsegai 125 30.00 4.00 Yosief 126 15.00 1.00 Haile 127 50.00 3.00 Requirements: 1. Write a computer program that takes the above data, computes wage for each individual and produces a table as shown below. 2. Overtime pay is allowed for anyone who works in excess of 40 hours. Anyone who works over 40 hours is paid one and a half times of the regular hourly rate for those hours. Example: Assume someone worked 50 hours and the pay rate is $2.00 per hour. Then the total wage is computed as follows: Regular pay (pay for the first 40 hours) = 40.00 * 2.00 = $80.00 Overtime pay = ( 50 - 40 ) * (1.50) * ( 2.00 ) = $30.00 ------------------------------------------------------------------------------------------- Total Wage = $110.00 3. Data must get the data from a file. That is you must open the input file from Pascal and read it. The input file is stored under assign3.inp in my directory. 4. Your output should appear as follows: Pete's Sweat Shop Pay Roll Table ----------------------------------------------------------------------------------------------------------- Name Id Hours Worked Pay Rate/Hour Wage ----------------------------------------------------------------------------------------------------------- Gheresus 123 40.00 1.50 60.00 Eyasu 124 70.00 2.00 170.00 Tsegai 125 30.00 4.00 120.00 Yosief 126 15.00 1.00 15.00 Haile 127 50.00 3.00 165.00 ----------------------------------------------------------------------------------------------------------- 5. Hand in a. Title page with purpose. b. Source code. c. Output. d. Staple all papers in order.