Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- hours = [0, 8, 12, 0, 8]
- print("Welcome to the Payroll Calculator!")
- first_name = input("Please enter first name:")
- last_name = input("Please enter last name:")
- sat_hours = float(input("Please enter hours worked Saturday:"))
- wage = float(input("Please enter the hourly wage:"))
- employee_name = first_name, last_name
- hours_count = hours.count(0)
- total = (len(hours) - hours_count) + 1
- total1 = 0
- for element in range(0, len(hours)):
- total1 += int(hours[element])
- gross = (sat_hours + total1) * wage
- print("Employee Name:", employee_name)
- print("Gross pay: $", format(gross, '.2f'))
- print("Total days worked:", total)
- cmd = input('Press enter to quit.')
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement