Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.98 KB | None | 0 0
  1. # coding=utf-8
  2.  
  3. # Information de rénumération:
  4. Nom = str(input("Nom: "))
  5. Indice = int(input("Indice: "))
  6.  
  7. if Indice < 80 or Indice > 450 :
  8.     print("Donnez un indice entre 80 et 450!")
  9.     exit(1)
  10.  
  11. Anciennete = int(input("Ancienneté: "));
  12. Chiffre=int(input("Chiffre d'affaires: "))
  13.  
  14.  
  15. Fixe = Indice*79.6
  16.  
  17. if Anciennete < 3:
  18.     # Pas de prime
  19.     PrimeAnciennete=0.0
  20. elif Anciennete >= 3 and Anciennete<10:
  21.     PrimeAnciennete = 0.1 * Fixe
  22. else:
  23.     PrimeAnciennete = 0.15 * Fixe
  24.  
  25. Objectif = 20000
  26. if Chiffre >= Objectif:
  27.     PSO = 700
  28. elif Chiffre >= 0.5 * Objectif and Chiffre < Objectif:
  29.     PSO = 400
  30. else:
  31.     PSO=0
  32.  
  33. SG = Fixe + PrimeAnciennete + PSO
  34.  
  35. print("Nom : ", Nom)
  36. print("Indice : ", Indice)
  37. print("Ancienneté : ", Anciennete, " Ans")
  38. print("Chiffre d'affaires : ", Chiffre, " DH")
  39. print("Fixe mensuel : ", int(Fixe), " DH")
  40. print("Prime d'ancienneté : ", int(PrimeAnciennete), "DH")
  41. print("Prime sur Objectif : ", int(PSO), " DH")
  42. print("Salaire Global : ", int(SG), " DH")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement