hours = float(input("Enter number of hours: "))
pay = float(input("Enter hourly pay: "))
salary=0
if(hours>40):
salary = pay * 40
salary = salary+((hours-40)*pay*1.5)
else:
salary=hours * pay
print("Salary\tHours\tPay")
print(pay,"\t",hours,"\t",salary)
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME
Get Answers For Free
Most questions answered within 1 hours.