Skip to content

This will work #6

Description

@shahaab

def computepay(hours, rate):
return hours * (rate * 1.5)

hours_in = float(input("Enter Hours: "))
rate_in = float(input("Enter Rate: "))

regular_hours = hours_in if hours_in <= 40.0 else 40.0
ot_hours = 0 if hours_in <= 40.0 else hours_in - 40.0

pay = (regular_hours * rate_in) + computepay(ot_hours, rate_in)

print("Total Pay is ---> " + str(pay))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions