Question: Write a Python program that will take 3 lists: Name Wage Hours Juan 7.50 35 Rae 11.00 41 Ivanna 18.25 26 Lilly 9.25 35 Robert

Write a Python program that will take 3 lists:

Name Wage Hours
Juan 7.50 35
Rae 11.00 41
Ivanna 18.25 26
Lilly 9.25 35
Robert 11.10 45

and use this logic:

An employee gets overtime when they have worked more than 40 hours

Overtime pay is calculated using this formula:

Gross Pay = (35*Wage) + ((Hours-35)*Wage*1.5)

Regular pay is calculated using this formula:

Gross Pay = (Hours*Wage)

Use a while loop and a for loop to process these lists.

Print each employee, their wages, Hours and gross pay.

It can be either a while or a for loop or both one after the other giving the same output.

I need help with this program. Thanks in advance.

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!