Question: In-Class Assignment 3 Write a Python program that does the following: Prompts the user for a number of hours worked in a week (full hours

 In-Class Assignment 3 Write a Python program that does the following:

In-Class Assignment 3 Write a Python program that does the following: Prompts the user for a number of hours worked in a week (full hours only), an hourly salary, and an overtime rate (in full percentages, i.e., 150). Overtime is paid for every hour after 40 hours worked per week. Store the data in variables of appropriate data types. Calculates the total compensation for the employee on the given week. Outputs a message with Enter number of hours worked: 50 Sample Output: Enter hourly salary: 12.5 Enter overtime rate: 150 Total compensation is 687.5 Name your project lastName_firstName_inClass3, where lastName is your last name and firstName is your first name. Zip your entire project folder and submit at the "In-Class Assignment 3" dropbox on D2L (or submit just a .py file)

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!