Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. name=str(input("What is the employee's name? "))
  2. print("What job does the employee have? ")
  3. print("A - Supervisor £30/h")
  4. print("B - Manager £20.50/h")
  5. job=str(input("C - Janitor £7.20/h "))
  6.  
  7. if job =="a":
  8. hours=int(input("How many hours did you work this week? "))
  9. totalPay=int(30*hours)
  10. print(name,"should earn £"+str(totalPay)+".")
  11.  
  12.  
  13. if job =="b":
  14. hours=int(input("How many hours did you work this week? "))
  15. totalPay=float(20.50*hours)
  16. print(name,"should earn £"+str(totalPay)+".")
  17.  
  18.  
  19. if job =="c":
  20. hours=int(input("How many hours did you work this week? "))
  21. totalPay=float(7.20*hours)
  22. print(name,"should earn £"+str(totalPay)+".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement