Question: How would I put the functions into a module for this code? # Take input for names of 3 employees nameOfEmp 1 Input = str

How would I put the functions into a module for this code?
# Take input for names of 3 employees
nameOfEmp1Input = str(input("Please enter name of first employee: "))
nameOfEmp2Input = str(input("Please enter name of second employee: "))
nameOfEmp3Input = str(input("Please enter name of third employee: "))
hour = int(input("Enter hours worked: "))
gross_pay = int(input("Enter hourly rate of the worker: "))
salary = gross_pay*hour
if hour >40:
diff = hour-40
salary = int(hour * gross_pay + diff * gross_pay /2)
print(f"Salary is ${salary}")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!