Guest User

02. Annual Salary

a guest
May 3rd, 2018
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. years = int(input())
  2. prof = str(input())
  3. money = 0.0
  4. if prof == "C# Developer" and years <= 5:
  5.     money = 54.0 * 34.2
  6. if prof == "Java Developer" and years <= 5:
  7.     money = 57.0 * 34.2
  8. if prof == "C# Developer" and years > 5:
  9.     money = 5400.0
  10. if prof == "Java Developer" and years > 5:
  11.     money = 5700.0
  12. if prof == "Front-End Web Developer" and years <= 5:
  13.     money = 41.0 * 34.2
  14. if prof == "UX / UI Designer" and years <= 5:
  15.     money = 31.0 * 34.2
  16. if prof == "Front-End Web Developer" and years > 5:
  17.     money = 4100.0
  18. if prof == "UX / UI Designer" and years > 5:
  19.     money = 3100.0
  20. if prof == "Game Designer" and years <= 5:
  21.     money = 36.0 * 34.2
  22. if prof == "Game Designer" and years > 5:
  23.     money = 3600.0
  24. print("Total earned money: ", end='')
  25. print("%.2f" % round(money*12.0, 2), end='')
  26. print(" BGN")
RAW Paste Data