SHARE
TWEET

Untitled

a guest Dec 11th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)+".")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top