-
Notifications
You must be signed in to change notification settings - Fork 26
/
1048.py
47 lines (25 loc) · 894 Bytes
/
1048.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
salario = float(input())
if(salario >= 0.0 and salario <= 400.00):
percentual = 0.15
reajuste = salario * percentual
novoSalario = salario + reajuste
elif(salario > 400.00 and salario <= 800.00):
percentual = 0.12
reajuste = salario * percentual
novoSalario = salario + reajuste
elif(salario > 800.00 and salario <= 1200.00):
percentual = 0.10
reajuste = salario * percentual
novoSalario = salario + reajuste
elif(salario > 1200.00 and salario <= 2000.00):
percentual = 0.07
reajuste = salario * percentual
novoSalario = salario + reajuste
else:
percentual = 0.04
reajuste = salario * percentual
novoSalario = salario + reajuste
percentual = percentual * 100
print("Novo salario: {0:.2f}".format(novoSalario))
print("Reajuste ganho: {0:.2f}".format(reajuste))
print("Em percentual: {} %".format(int(percentual)))