Tuesday, March 1, 2022

Payroll in Python

 A simple payroll program that I wrote as one of the requested by one of my subscribers of my youtube channel.

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

# payroll.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# March 1, 2022 Tuesday 7:45 PM
# Bacolod City, Negros Occidental

print()
print("\tPayroll in Python");
print()
name = str(input("Employees Name : "))
hours = int(input("Enter Number of Hours : "))
sss = float(input("SSS Contribution : "))
phil_health = float(input("PhilHealth Contribution : "))
housing_loan = float(input("Housing Loan : "))

rate = 500
tax = 500
gross = hours * rate
deductions = (sss+phil_health+housing_loan+tax)
netsalary = (gross - deductions)

print();
print("\t=================PAYSLIP====================");
print("\t=================EMPLOYEE INFORMATION====================\n");
print("Employee Name : " + name.upper())
print("Rendered Hours : " + str(hours))
print("Rate Per Hour : " + str(rate))
print("Gross Salary = {:5.2f}" .format(gross))
print("\t=================DEDUCTIONS====================\n");
print("SSS : {:5.2f}" .format(sss))
print("PhilHealth : {:5.2f}" .format(phil_health))
print("Other Loan : {:5.2f}" .format(housing_loan))
print("Tax : {:5.2f}" .format(tax))
print("Total Deductions : {:5.2f}" .format(deductions))
print();
print("Net Salary : PHP {:5.2f}".format(netsalary) )
print();
print("\tEND OF PROGRAM");
print();


No comments:

Post a Comment