Skip to content

Donyboi/unit-01-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unit-01-python

for i in range(num_employees): print(f"Employee #{i+1}") c hourly_rate = float(input("Enter hourly pay rate: ")) hours_worked = float(input("Enter number of hours worked: ")) overtime_worked = float(input("Enter overtime hours worked: "))

regular_pay = hours_worked * hourly_rate
overtime_pay = overtime_worked * hourly_rate * 1.5
total_payroll = regular_pay + overtime_pay

print(f"{employee_name}'s total pay: ${total_payroll:.2f}")

total_payroll += total_payroll
overtime_hours += overtime_worked

print(f"Total payroll for {company_name}: ${total_payroll:.2f}") print(f"Total overtime hours: {overtime_hours}")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages