python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
pay_rate = 1000 hours_worked = 50 overtime_pay_rate = 1.5*pay_rate if hours_worked<=40: gross_earning = pay_rate*hours_worked elif(hours_worked>40): overtime_hours = hours_worked - 40 gross_earning = pay_rate*40 + overtime_pay_rate*overtime_hours print("Gross Earning of the Employee is",gross_earning)
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up