f = open("program0.4.txt", "w")
done = input('Enter done for last name when finished')
Last_Name = input("Enter Last Name: ")
while Last_Name != 'done':
First_Name = input("Enter First Name: ")
Hrs_Wrkd =int(input("Enter Hours Worked: "))
Hrly_Wge = int(input("Enter Hourly Wage: "))
f.write('Last Name' + ' ' + 'First Name' + ' ' + 'Salary' + "\n")
Last_Name = input('Enter Last Name: ')
f.close()
f = open("program0.4.txt", "r")
line = f.read()
for line in f:
info = f.split()
Salary = Hrs_Wrkd * Hrly_Wge
print(line)
print(Last_Name, " ", First_Name, " ", Salary)
f.close()