Write an algorithm to calculate the wages of an employee. The pay depends on wages per hour and the number of hours worked. Moreover, if the employee has worked more than 30 hours, then he or she gets twice the wages per hour ,for every extra hour that he or she has worked.
Answers
Answered by
1
wgp = int(input("Wages per hour: "))
hw = int(input("Hours worked: "))
if hw >= 30:
fwn = hw - 30
print("Wage: " , wgp*fwn)
else:
print("Wage: " , wgp)
Similar questions