Question: python code!! A list of employees names, hours worked in a week and the hourly rate of pay is entered. Read in each employees data

python code!! A list of employees names, hours worked in a week and the hourly rate of pay is entered. Read in each employees data and print out the pay for the week (including 1.5 times overtime pay for hours over 40). At the end, print the total pay for all employees. Some sample data is shown below (with the corresponding output). Hint: First write a while loop to read in employee data (one employee at a time) and print it. Then enhance your work to process an employee without overtime pay. Then include overtime pay and finally, produce the total pay. The input and output can be interlaced as shown below. Your program must produce the exact Input/Output shown. Input/Output: Enter employees name: John Smith Enter employees hours worked: 50 Enter employees hourly rate of pay: 10 John Smiths pay=$550.00 Enter employees name: Jane Doe Enter employees hours worked: 40 Enter employees hourly rate of pay: 15 Jane Does pay=$600.00 Enter employees name: Mark Manning Enter employees hours worked: 60 Enter employees hourly rate of pay: 12 Mark Mannings pay=$840.00 Enter employees name: zzzz Enter employees hours worked: 0 (this line is optional) Enter employees hourly rate of pay: 0 (this line is optional) Total pay=$1990.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!