A simple program that I wrote in Python to solve the weekly wage of an employee in a company using Python programming language.
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.
def WeeklyWagesSolve(totalHours, hourlyWage):
# Return the total weekly wages for a worker working totalHours,
# with a given regular hourlyWage. Include overtime for hours over 40.
if totalHours <= 40:
totalWages = hourlyWage*totalHours
else:
overtime = totalHours - 40
totalWages = hourlyWage*40 + (1.5*hourlyWage)*overtime
return totalWages
def main():
print()
print("\tWeekly Wages in Python")
print()
hours = float(input('Enter hours worked: '))
wage = float(input('Enter Phippine Peso(s) paid per hour : '))
total = WeeklyWagesSolve(hours, wage)
print()
print('Wages for {hours} hours at PHP {wage:.2f} per hour are PHP {total:.2f}.'
.format(**locals()))
print("\nEnd of Program")
main()