# Write a program to prompt the user for hours and rate per hour using input to compute gross pay.
#Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours.
# Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75).
#You should use input to read a string and float() to convert the string to a number.
#Do not worry about error checking the user input - assume the user types numbers properly.

#input functions
hrs = input("enter the hours:")
rat = input("rate per hour:")
#converted the strings in to integers
h = float(hrs)
r = float(rat)
#applying condition if >40hrs
if h>40:
    gp = h * r #general pay
    ap = (h-40) * r * 0.5  #additional pay
    tp = gp + ap  #total pay
#< 40
else:
    tp = h * r
print(tp)

6d84d99a850e68bc831acbd3298dc9d4af1aea24
<mask token>

<mask token>
if h > 40:
    gp = h * r
    ap = (h - 40) * r * 0.5
    tp = gp + ap
else:
    tp = h * r
print(tp)

hrs = input('enter the hours:')
rat = input('rate per hour:')
h = float(hrs)
r = float(rat)
if h > 40:
    gp = h * r
    ap = (h - 40) * r * 0.5
    tp = gp + ap
else:
    tp = h * r
print(tp)

# Write a program to prompt the user for hours and rate per hour using input to compute gross pay.
#Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours.
# Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75).
#You should use input to read a string and float() to convert the string to a number.
#Do not worry about error checking the user input - assume the user types numbers properly.

#input functions
hrs = input("enter the hours:")
rat = input("rate per hour:")
#converted the strings in to integers
h = float(hrs)
r = float(rat)
#applying condition if >40hrs
if h>40:
    gp = h * r #general pay
    ap = (h-40) * r * 0.5  #additional pay
    tp = gp + ap  #total pay
#< 40
else:
    tp = h * r
print(tp)
