Académique Documents
Professionnel Documents
Culture Documents
I.T.S.Z.O.
3. TCNICAS DE DISEO
3.2 Bottom Up
smbolo descripcin
4.2 Pseudocdigo
inicio
accin1
accion2
fin
5. ESTRUCTURAS ALGORITMICAS
Estructuras Algortmicas
Secuenciales Condicionales Cclicas
Asignacin Simples Hacer para
Entrada Mltiples Hacer mientras
Salida Repetir hasta
inicio
accion1
accion2
.
.
accionN
fin
Leer a, b
Donde a y b son las variables que recibirn los valores
Problemas Secuenciales
Inicio
Leer cap_inv
ganancia = cap_inv * 0.02
Imprimir ganancia
Fin
Inicio
Leer sueldo_base, v1, v2, v3
total_vta = v1 + v2 + v3
comision = total_vta * 0.10
total_pag = sueldo_base + comision
Imprimir total_pag, comision
Fin
Inicio
Leer tc
d = tc * 0.15
tp = tc - d
Imprimir tp
Fin
Inicio
Leer c1, c2, c3, ef, tf
prom = (c1 + c2 + c3)/3
ppar = prom * 0.55
pef = ef * 0.30
ptf = tf * 0.15
cf = ppar + pef + ptf
Imprimir cf
Fin
Inicio
Leer nh, nm
ta = nh + nm
ph = nh * 100 / ta
pm = nm * 100 / ta
Imprimir ph, pm
Fin