Write a Python program that reads the data from your text file. For each employee, determines if the employee qualifies for overtime and calculates total pay. Display the data read from the file with appropriate headings above the data being displayed.
If the hours are greater than 40, display 'Pay overtime' and calculated total pay with overtime.
If the hours are less than or equal to 40, display 'No overtime' and calculated total pay without overtime. Note: overtime is 1.5 times regular pay.
Name Priya Jones Sam Wayne Jennifer Kharel Ayesha Oso Amir Ngo Mohammed James Hours Hourly Payrate $19.00 $14.50 $21.25 $23.50 $17.75 $22.00 ID 112245 50 001326 24 121378 40 043245 39 212399 42 012345 31
Write a Python program that reads the data from your text file. For each employee, determines if the employee qualifies
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am