Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name=str(input("What is the employee's name? "))
- print("What job does the employee have? ")
- print("A - Supervisor £30/h")
- print("B - Manager £20.50/h")
- job=str(input("C - Janitor £7.20/h "))
- if job =="a":
- hours=int(input("How many hours did you work this week? "))
- totalPay=int(30*hours)
- print(name,"should earn £"+str(totalPay)+".")
- if job =="b":
- hours=int(input("How many hours did you work this week? "))
- totalPay=float(20.50*hours)
- print(name,"should earn £"+str(totalPay)+".")
- if job =="c":
- hours=int(input("How many hours did you work this week? "))
- totalPay=float(7.20*hours)
- print(name,"should earn £"+str(totalPay)+".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement