informatica

Páginas: 3 (571 palabras) Publicado: 13 de julio de 2014




















































PSEUDOCÓDIGO CALIFICACIÓN DE ALUMNO.

{MAT es una variable de tipo entero. CALI, CAL2, CAL3,CAL4, CAL5 y PRO son variables de tipo real}

1. Leer MAT, CALI, CAL2, CAL3, CAL4 y CAL5

2. Hacer PRO = (CALI + CAL2 + CAL3 + CAL4 -I- CAL5) / 5

3. Si PRO > 6
EntoncesEscribir MAT, PRO, "APROBADO"
Si no
Escribir MAT, PRO, "MO APROBADO"
4. {Fin del condicional del paso 3}



PSEUDOCÓDIGO DE DECUENTO A CLIENTE SEGÚNLA COMPRA
{COMPRA y PAGAR son variables del tipo real}

1. Lee COMPRA
2. SI COMPRA < 500
Entonces
Hacer PAGAR ---------- COMPRA
Si no
2.1SI COMPRA < = 1000
Entonces
Hacer PAGAR --------- CO MPRA - (COMPRA * 0 .0 5)
Si no
2.1.1 SI COMPRA < =7000
Entonces
Hacer PAGAR ----------COMPRA - (COMPRA * 0. 11)
Si no
2.1. 1. 1 SI COMPRA < = 15000
Entonces
Hacer PAGAR ---------- COMPRA -(COMPRA *O .1 8)Si no
Hacer PAGAR ---------COMPRA -(COMPRA *O .2 5)
2. 1. 1. 2 {F in del condicionaldel paso 2. 1. 1. 1}
2. 1. 2 {F in del condicional del paso 2. 1. 1}
2.2 {Fin del condicional del paso 2 .1}
3. {F in del condicional del paso 2}
4. EscribirPAGAR






TAREA
LENGUAJES DE PROGRAMACION

ALUMNO: JORDY CORTES SANCHEZ


MAESTRO: LIC.LUIS LARA

MÓDULO: 2

LICENCIATURA EN ING. EN SISTEMAS COMPUTACIONALES
CUARTO CUATRIMESTRE...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informática
  • Informatica
  • Informatica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS