Tuesday, March 15, 2022

Employee's Payroll in Python

 Machine Problem


I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.



Program Listing

# employees_payroll.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# March 15, 2022 Tuesday 3:54 PM
# Bacolod City, Negros Occidental

print()
print("\tEmployee's Payroll in Python");
print()
emp_name = str(input("\tEmployees Name : "))
office = str(input("\tOffice [IT, ACCOUNTING, HR] : "))
years_service = float(input("\tNo. of years in service : "))

if (office.lower() == 'it') and (years_service >=10):
salary = 10000
elif (office.lower() == 'it') and (years_service < 10):
salary = 5000
elif (office.lower() == 'accounting') and (years_service >=10):
salary = 12000
elif (office.lower() == 'accounting') and (years_service < 10):
salary = 6000
elif (office.lower() == 'hr') and (years_service >=10):
salary = 15000
else:
salary = 7500

print()
print("\tName : " + emp_name)
print("\tOffice : " + office.upper())
print("\tYears of Service : " + str(years_service))
print("\tSalary : " + str(salary))
print();
print("\tEND OF PROGRAM");
print();

No comments:

Post a Comment