Question: Description This problem is based on the yearly wage problem in Homework 2 . The solution to Homework 2 can be downloaded here: Homework 0

Description
This problem is based on the yearly wage problem in Homework 2. The solution to Homework 2 can be downloaded here: Homework02.zip darr (will
be downloadable from Monday, 09/09)
Rewrite the program to give the user 2 times the hourly pay for hours worked above 8 hours daily and let the user they are being compensated for
working overtime. Specifically,
if the daily work hours is less than or equal to 8, calculate the yearly wage as in Homework 2;
Example: Given 7 hours and $20 per hour, the yearly wage would be 7*20*365
if the daily work hours is greater than 8, the hourly wage for the above 8 hours part should be doubled and print an extra message "You will be
compensated for working overtime."
Example: Given 9 hours and $20 per hour, the yearly wage would be 8**20**365+(9-8)**20**2**365
Name your file
yearlywage2.py
Assume the user inputs are non-negative.
Examples (Ignore the filename in the example screenshots. Still name your file
yearlywage2.py).
Example 1: 7 hours is not overtime.Enter the number of hours worked daily: 7
Enter the hourly wage: 20
Yearly wage =51100.0Example 2: 9 hours is overtime.
In python please!
Description This problem is based on the yearly

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 Programming Questions!