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

15th May 2020, 10:36 PM
Ahmed Hussein Saleh
Ahmed Hussein Saleh - avatar
4 Respuestas
0
Hi pls mention the language name in tags and remove the irrelevant questions from your description
15th May 2020, 10:48 PM
Abhay
Abhay - avatar
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:-)
15th May 2020, 10:50 PM
Abhay
Abhay - avatar
0
print(" PAYCHECK") name=input("The name of worker: ") ro=8 print("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)
16th May 2020, 9:47 AM
Ahmed Hussein Saleh
Ahmed Hussein Saleh - avatar