Professional Documents
Culture Documents
Pc2-Grupo 3-I11b
Pc2-Grupo 3-I11b
Pc2-Grupo 3-I11b
VARIABLES
TIPO DE
variables descripcion DATO validacion uso
TC tipo de contrato entero 1=fijo; 2=temporal entrada
S sueldo real >=1250 entrada
R variable de control cadena 1 entrada
B bonificacion real >0 salida
PSEUDOCODIGO:
INICIO
R=1
MIENTRAS R=1
HACER
INGRESAR S
FIN SI
HACER
INGRESAR TC
FIN SI
HASTA TC =1 o TC=2
SI TC=1 entonces
B = S*0.13
Sino
B= S*0.08
FIN SI
INGRESAR R
FIN-MIENTRAS
FIN
FORMULAS
PARA TC=1
B=S*0.13
PARA TC =2
B=S*0.08
SECUENCIA LOGICA