0
How to write a program in python to calculate, workers hourly payed paycheck ?
A paycheck calculator https://www.sololearn.com/discuss/2294386/?ref=app https://www.sololearn.com/discuss/2294386/?ref=app
4 Respostas
0
Hi pls mention the language name in tags and remove the irrelevant questions from your description
0
I see you are halfway through your python course ,maybe we could see what you have tried so far and help you further accordingly:-)
0
print(" PAYCHECK")
name=input("The name of worker: ")
ro=8print("Regular hours:",ro)
sh=input("Worked hours: ")
sr=2500
print("hourly payed rate:",sr,"fc")
fh=float(sh)
fr=float(sr)
reg=(fh*fr)
print("regular payment:",reg,"fc")
total = reg
if fh>ro:
otp = (fh - ro) * (fr * 0.50)
print("overtime:",otp,"fc")
total = (reg + otp)
if otp>=5000 :
recompence = (otp*0.5)
total = (total + recompence) print("Recompence",recompence) print("Tota:",total,"fc")
import datetime
datetime = datetime.datetime.today()
print(datetime)