Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Programacin Digital
Desarrollo de problemas
Pseudocdigo
N-S Ig = 0.19 : Real vv, pv, igv: Real Leer vv igv = ig*vv pv = vv + igv Escribir igv, pv
ig = 0.19 : Real
vv, pv, igv: Real Leer vv igv pv ig*vv vv + igv
Inicio Constante ig = 0.19 : real Variables vv, pv, igv : Real Entrada Leer vv Proceso igv ig*vv pv vv + igv Salida Escribir igv, pv Fin
, donde a y n pertenecen a Z + .
N-S a, n : Entero r : Real Leer a, n
Pseudocdigo
Imprimir r Fin
Inicio Variables a, n : Entero r : Real Entrada Leer a, n Proceso r a(1/n) Salida Escribir r Fin
r = a(1/n)
Escribir r
n>0 F n<0 F c
Neutro
Imprimir c
Fin
N-S Pseudocdigo Inicio n : Entero Variables c : Cadena n : Entero c : Cadena Leer n Entrada Leer n Proceso if n>0 si n>0 entonces else then c Positivo Positivo sino if n<0 si n<0 entonces Negativo else c Negativo c=Positivo then sino c=Negativo c=Neutro c Neutro Fin si Fin si Escribir c Salida Escribir c Fin
Pseudocdigo
N-S n : Entero c : Cadena Leer n if n Mod 3 = 0 Y n Mod 5 = 0 then c=Si es else c=No es
n Mod 3 = 0 Y n Mod 5 = 0 V c Si es c No F
Imprimir c
Fin
Escribir c
Imprimir x, q, tp Fin
q x tp else
q Descuento 20% x Des_A*mc tp mc-x Fin if else if tc = G then q Recargo 10% x Rec_G*mc tp mc+x else q Recargo 5% x Rec_A*mc tp mc+x Fin if Fin if Salida Escribir x, q, tp Fin
then
then if tc = G
if fp = C else then if tc = G
else else
Escribir x, q, tp
Pseudocdigo
Inicio Variables n : Entero c : Cadena Entrada Leer n Proceso En caso que n sea Caso 0 c Cero Caso 1 c Uno Caso 2 c Dos Caso 3 c Tres Caso 4 c Cuatro Caso c Caso c Caso c Caso c Caso c Fin Caso Salida Escribir Fin 5 Cinco 6 Seis
7
Siete 8 Ocho 9 Nueve
F F
F F F F F F
c
c c c c c c
Tres
Cuatro Cinco Seis Siete Ocho Nueve
5 V 6 V 7 V 8 V 9 V
Imprimir c Fin
N-S
n
Case 0 Case 1 Case 2 Case 3 Case 4 Case 5 Case 6 Case 7 Case 8 Case 9
else
c=Cero
c=Uno
c=Ocho
c=Nueve
Escribir c
then
Si es vocal
then
then then
N-S
then
then
then
Escribir r
Pseudocdigo
Inicio Variables n : Entero r : cadena Entrada Leer n Proceso if n>=0 Y n<=5 then r PESIMO else if n>=6 Y n<=10 then r MALO else if n>=11 Y n<=14 then r REGULAR else if n>=15 Y n<=17 then r BUENO else n>=18 Y n<=20 then r EXCELENTE Fin if Salida Escribir r Fin
Leer n
n>=0 Y n<=5 F n>=6 Y n<=10 F n>=11 Y n<=14 F V r REGULAR V r MALO V r PESIMO
n>=15 Y n<=17
F n>=18 Y n<=20 F
BUENO
N-S
then
then
then r=REGULAR
r=EXCELENTE
Escribir r
Pseudocdigo Inicio Variables i, n, s : Entero Entrada Leer n Proceso i 1 Mientras i<=n s s + i i i + 1 Fin Mientras Salida Escribir s Fin
i<=n s i V s + i i + 1
Escribir s Fin