print("\t\tCODEWAVE SOLUTIONS LTD\n")
print("\t Employee Salary Calculator\n")
while True:
while True:
n = input("Enter worker's full name: ")
if input("Confirm? (Y=Continue, N=Re-enter): ").upper() == 'Y':
break
while True:
h = float(input("\nEnter total hours worked: "))
if input("Confirm? (Y=Continue, N=Re-enter): ").upper() == 'Y':
break
while True:
r = float(input("\nEnter hourly rate: "))
if input("Confirm? (Y=Continue, N=Re-enter): ").upper() == 'Y':
break
print(f"\nEmployee: {n}\nRating: {'Excellent Performer!' if h >= 45
else 'Satisfactory' if h >= 35 else 'Needs improvement!'}\nHours Worked:
{h:.2f}\nRate: ${r:.2f}\nTax paid (10%): ${h * r * 0.1:.2f}\nGross Salary:
${h * r * 0.9:.2f}\n")
while (a := input("Another employee? (Y=Yes, N=Exit): ").upper()) not
in 'YN': print("Please enter Y or N.")
if a != 'Y': break
print("\nGoodbye!")