Está en la página 1de 14

AREA DE UN CUADRADO: Proceso Inicio Var L,A :enteros; Escribe ("dame lado"); Lee (L); A=L X L; Imprime ( "el

rea del cuadrado es", A); Fin AREA DE UN TRIANGULO inicio Var B,H,A: decimal; Escribe ("dame la base del tringulo"); Lee (B); Escribe ("la altura del tringulo"); Lee (H); A= (B x H)/2; Imprime ("el rea es", A); Fin AREA DE UN CIRCULO Inicio Var R, A, Pi: decimal; Escribe ("dame el radio del circulo"); Lee (R); A= (3.1416) x (R x R); Imprime ("el rea es", A); Fin

DIAGRAMA QUE SOLICITE LS DATOS PERSONALES DE UN ALUMNO DEL CONALEP 205 Inicio Var N,E,F,D,C,G,M: caracteres; Escribe ("dame nombre completo"); Lee (N); Escribe ("dame tu edad"); Lee (E); Escribe ("dame tu fecha de nacimiento"); Lee (F); Escribe ("dame tu domicilio"); Lee (D); Escribe ("dame tu carrera"); Lee (C); Escribe ("dame tu genero"); Lee (G); Escribe ("dame tu matriula"); Lee (M); Imprime ("los datos del alumno son", N,E,F,D,C,G,M) Fin

DIAGRAMA QUE CALCULE EL PROMEDIO DE UN ALUMNO DE CONALEP DEL GRUPO 205 Proceso Inicio Var E,A,I,Ar,Q,B,P,M,Ma,P: decimal; Escribe ("dame calificacin de espaol"); Lee (E); Escribe ("dame calificacin de aplicacin"); Lee (A); Escribe ("dame calificacin de ingles"); Lee (I); Escribe ("dame calificacin de aritmtica"); Lee (Ar); Escribe (" dame calificacin de qumica"); Lee (Q); Escribe (" dame calificacin de biologa"); Lee (B); Escribe (" dame calificacin de programacin"); Lee (P); Escribe (" dame calificacin de matemticas"); Lee (M); Escribe ("dame calificacin de mantenimiento"); Lee (Ma); P= (E+A+I+Ar+Q+B+D+M+Ma)/9 Imprime ("promedio es de", P) Fin

DIAGRAMA QUE CALCULE EL TOTAL A PAGAR Y EL CAMBIO DE UNA COMPRA DE 5 PRODUCTOS EN EL SUPER Inicio Var C1,C2,C3,C4,C5,C,Ca,P: decimal; Escribe ("dame compra 1"); Lee (C1); Escribe ("dame compra 2"); Lee (C2); Escribe ("dame compra 3"); Lee (C3); Escribe ("dame compra 4"); Lee (C4); Escribe ("dame compra 5"); Lee (C5); C=C1`+C2+C3+C4+C5; Imprime ("el total a pagar es",C); Escribe ("dame el pago"); Lee (P); Ca=P-C; Imprime ("el cambio es",C) Fin

DETERMINA E IMPRIME LA SUMA DE 5 PRODUCTOS DE UNA BOUTIQUE CON UN DESCUENTO DEL 40% IMPRIMA DESCUENTO, NETO A PAGAR Y CAMBIO. Inicio Var P1,P2,P3,P4,P5,S,D,TA,B,C: decimal; Escribe ("dame producto 1"); Lee (P1); Escribe ("dame producto 2"); Lee (P2); Escribe ("ame producto 3"); Lee (P3); Escribe ("dame producto 4"); Lee (P4); Escribe ("dame el producto 5"); Lee (P5); S=P1+P2+P3+P4+P5; D= (S x 40)/100; Escribe ("dame billete"); Lee (B); C= B-TA Imprime (C) Fin DETERMINA LA EDAD DE UNA PERSONA Inicio Var Fn,Aa,E: entero; Escribe ("dame fecha de nacimiento"); Lee (Fn); Escribe ("dame ao actual"); Lee (Aa); E= Aa - Fn; Imprime ("la edad es",E); Fin

MONTO DE PESOS MEXICANOS, UN RETIRO EN DLARES DE ESTADOS UNIDOS Inicio Var D,VD,R: decimal; Escribe ("dame el dlar") Lee (D) Escribe (" dame el valor del dlar"); Lee (VD); R=D x VD; Imprime ("tu retiro es de", R); Fin SUELDO BASE Inicio Var SB,D,PD,BP,DE,ISR,SIN,S,O,NOM: decimal; Escribe (" dame sueldo base"); Lee (SB); D=(SB x 3)/100; PD=(SB x 4)/100; BP=(SB x 2)/100; DE= SB+D+PD+BP; ISR=(SB x 10)/100; S=(SB x 2)/100; SIN=(SB x 1)/100; O= ISR+S+SIN; NOM= DE-O; Imprime= ("la nmina es", NOM), Fin

CONVERTIR PESOS A DLARES Y DLARES A EUROS Inicio Var PM,VD,D,VE,E: decimal; Escribe ("dame pesos"); Lee (PM); Escribe ("dame valor del dlar"); Lee (VD); D= PM/VD; Escribe ("dame valor del euro"); Lee (VE); E= PM/VE; Imprime (E); Fin CALCULA EDAD PROMEDIO DE UN EQUIPO DE BASKETBALL Inicio Var J1,J2,J3,J4,J5,J6,EP: enteros; Escribe ("dame edad jugador 1"); Lee (J1); Escribe ("dame edad jugador 2"); Lee (J2); Escribe ("dame edad jugador 3"); Lee (J3); Escribe ("dame edad jugador 4"); Lee (J4); Escribe ("dame edad jugador 5"); Lee (J5); Escribe (2dame edad jugador 6"); Lee (J6); EP=(J1+J2+J3+J4+J5+J6)/6; Imprime (EP); Fin

SUELDO DE UN CORTADOR DE LIMN A LA SEMANA Inicio Var D1,D2,D3,D4,D5,D6,D7,PC,ST,G:decimal; Escribe ("dame cajas da 1"); Lee (D1); Escribe ("dame cajas da 2"); Lee (D2); Escribe ("dame cajas da 3"); Lee (D3); Escribe ("dame cajas da 4"); Lee (D4); Escribe ("dame cajas da 5"); Lee (D5); Escribe ("dame cajas da 6"); Lee (D6); Escribe ("dame cajas da 7"); Lee (D7); Escribe ("dame precio por caja"); Lee (PC); ST=D1+D2+D3+D4+D5+D6+D7; G= ST x PC; Imprime (G); Fin ARTCULOS VENDIDOS EN 3 CATEGORIAS Inicio Var CA,CB,CC,BV,G:entero; Escribe ("vendidos en categora A"); Lee (CA); Escribe ("vendidos en categora B"); Lee (CB); Escribe ("vendidos en categora C"); Lee (CC); BV= CA+CB+CC; Imprime (BV); G(CA x 100)+(CB x 70)+(CC x 50); Imprime (G); Fin

UNA COMPRA EN SUPER MERCADO Y DETERMINAR SI PAGA O NO CON DESCUENTO Proceso Inicio Var TP,T,D:decimal; Escribe ("dame total a pagar"); Lee (TP); Si TP ? $1000 entonces Escribe ("paga total con descuento") D= (TP x 20)/100 T = TP-D; Imprime (T); Si no Escribe ("paga total") Imprime (TP); Fin sino Fin si Fin

SACA EL PROMEDIO DE UN ALUMNO Inicio Var P: enteros; Escribe ("dame promedio"); Lee (P); Si P=10 entonces Imprime ("excelente", P); Fin si Si P=9 entonces Imprime ("muy bien", P); Fin si Si P=8 entonces Imprime ("bien", P); Fin si Si P=7 entonces Imprime ("suficiente"); Fin si Si no Imprime ("insuficiente"); Fin MAYOR DE DOS NUMEROS Inicio Var N1,N2:enteros; Escribe ("dame numero 1") Lee (N1); escribe ("Dame numero 2") lee (N2); si N1>N2 entonces imprime ("N1 es mayor", N1); fin si si N2>N1 entonces imprime ("N2 es mayor", N2) fin si si no imprime ("son iguales"); fin si no fin si

MAYOR DE 3 NUMEROS Inicio Var N1,N2,N3:enteros; Escribe ("dame numero 1"); Lee(N1); Escribe ("dame numero 2"); Lee (N2); Escribe ("dame numero 3"); Lee (N3); Si N1>N2 y N1>N3 entonces Imprime ("N1 es mayor",N1) Fin si Si N2>N3 y N2>N1 entonces Imprime ("N2 es mayor",N2); Fin si Si N3>N1 y N3>N2 entonces Imprime ("N3 es mayor",N3); Fin si Si no Imprime ("son iguales"); Fin si no Fin si Fin

SALDO EN UN CAJERO Y RETIRO Inicio Var T,NIP,O,E,R,NS:decimal; Escribe ("dame tarjeta"); Lee (T); Escribe ("dame NIP"); Lee (NIP); Si T=OK y N=OK entonces Escribe ("dame operacin a realizar"); Lee (O); Si no Escribe ("error") Finsino finsi si O=R entonces Escribe ("seleccione saldo a retorar"); Lee (R); NS=SA-R Imprime ("su nuevo saldo y retiro es",NS,R); Sino Imprime ("su saldo actual es",SA); Finsino Finsi Fin

REA DE UN CIRCULO, UN TRIANGULO O UN CUADRADO Inicio Var OP,T,C,B,H,A,L,R, Escribe (dame opcin); Lee (OP); Si OP=T entonces Escribe (dame base) Lee (B) Escribe (dame altura) Lee (H) A=(B x H)/2 Imprime (el rea del tringulo es, T); Finsi Si OP=C entonces Escribe (dame lado) Lee (L) A=L x L Imprime (el rea del cuadrado es, A); Sino Escribe (dame radio) Lee (R) A=(3.1416)x(R x R) Imprime (el rea del circulo es, A); Finsino Finsi Fin

COMPRA EN UNA BOUTIQUE CON DESCUENTO Inicio Var C,D,PT Escribe ("dame compra"); Lee (C); Si C ? 1000 entonces D=(C x 10)/100 PT=C-D Imprime ("precio total es", PT); Finsi Si C ? 1001 y C ? 2000 entonces D= (C x 15)/100 PT= C - D Imprime ("precio total es", PT); Finsi Si C ? 2001 y C ? 3000 entonces D=(C x 20)/100 PT= C - D Imprime ("precio total es", PT); Finsi Si C ? 3001 y C ? 4000 entonces D= (C x 25)/100 PT= C - D Imprime ("precio total es", PT); Finsi Si C ? 4001 y C ? 5000 entonces D= (C x 30)/100 PT= C - D Imprime ("precio total es", PT); Sino D= (C x 50)/100 PT= C - D Imprime ("precio total es", PT); Fin sino Finsi Fin

También podría gustarte