Answer:
Python script for the problem is provided below
Step-by-step explanation:
name = input("Employee Name: ")
hoursWorked = input("\\Hours Worked: ")
payRate = input("Pay Rate: $")
hoursWorked = int(hoursWorked)
payRate = float(payRate)
grossPay = payRate*hoursWorked
print("Deduction: ")
print("\tFederal Withholding(10%): $",round(grossPay*.1,2))
print("\tState Withholding(6%): $",round(grossPay*.06,2))
print("\tTotal Deduction: $",round((grossPay*.1+grossPay*.06),2))
print("Net Pay check: $",round((grossPay-(grossPay*.1+grossPay*.06)),2))
print("Your new access code is: ")
lengthOfName = len(name)
index = int(lengthOfName/3);
firstName = name.split(" ")[0]
lastName = name.split(" ")[1]
print(name[index:11]+name[len(name)-2:len(name)].upper()+firstName[2]+lastName[2]+lastName[0])