Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- # Information de rénumération:
- Nom = str(input("Nom: "))
- Indice = int(input("Indice: "))
- if Indice < 80 or Indice > 450 :
- print("Donnez un indice entre 80 et 450!")
- exit(1)
- Anciennete = int(input("Ancienneté: "));
- Chiffre=int(input("Chiffre d'affaires: "))
- Fixe = Indice*79.6
- if Anciennete < 3:
- # Pas de prime
- PrimeAnciennete=0.0
- elif Anciennete >= 3 and Anciennete<10:
- PrimeAnciennete = 0.1 * Fixe
- else:
- PrimeAnciennete = 0.15 * Fixe
- Objectif = 20000
- if Chiffre >= Objectif:
- PSO = 700
- elif Chiffre >= 0.5 * Objectif and Chiffre < Objectif:
- PSO = 400
- else:
- PSO=0
- SG = Fixe + PrimeAnciennete + PSO
- print("Nom : ", Nom)
- print("Indice : ", Indice)
- print("Ancienneté : ", Anciennete, " Ans")
- print("Chiffre d'affaires : ", Chiffre, " DH")
- print("Fixe mensuel : ", int(Fixe), " DH")
- print("Prime d'ancienneté : ", int(PrimeAnciennete), "DH")
- print("Prime sur Objectif : ", int(PSO), " DH")
- print("Salaire Global : ", int(SG), " DH")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement