Question: Exercise Create a Python script that calculate a user's weekly paycheck. The programs should prompt the user for his/her name, rate of pay, hours worked,

 Exercise Create a Python script that calculate a user's weekly paycheck.

Exercise Create a Python script that calculate a user's weekly paycheck. The programs should prompt the user for his/her name, rate of pay, hours worked, and whether their employer pays overtime at "time and a half" for hours over 40 in one week ( 42 hours = 2 hours of OT, which earns 3 hours of pay ) Use an IF branch to determine if OT pay applies based on this Input. Use an IF branch to determine the OT pay (if any is deserved). Calculate the user's pay. Strive to duplicate this in Python. What is your name: John What is your hourly rate: 10 How many hours did you work this week: 44 Are you paid overtime (yeso): yes John your payment this week is 460 What is your name: John What is your hourly rate: 10 How many hours did you work this week: Are you paid overtime (yeso): no John your payment this week is 440 23 44

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!