-
Notifications
You must be signed in to change notification settings - Fork 0
/
SueldoDePepe.wlk
76 lines (62 loc) · 999 Bytes
/
SueldoDePepe.wlk
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
object sueldo{
var neto = 0
method sueldoNeto(){
return neto
}
method sueldo() {
return (neto - situacionSindical.descuento() + presentismo.bono())
}
method categoria(categoria){
if (categoria == 'gerente'){
neto = 15000
}
if (categoria == 'cadete'){
neto = 20000
}
}
}
object situacionSindical{
var descuento = 0
method descuento(){
return descuento
}
method Porcentual(){
descuento = (sueldo.sueldoNeto() * 0.03)
}
method Comprometido(){
descuento = (sueldo.sueldoNeto() * 0.01) + 1500
}
method NoSindicalizado(){
descuento = 0
}
}
object presentismo{
var bono = 0
method bono(){
return bono
}
method normal(dias){
if (dias == 0){
bono = 2000
}
if (dias == 1){
bono = 1000
}
if (dias < 1 ){
bono = 0
}
}
method ajuste(dias){
if (dias == 0){
bono = 10
}
}
method demagogico(){
if (sueldo.sueldoNeto() < 18000){
bono = 500
}
else {
bono = 350
}
}
}