El documento presenta 5 programas en pseudocódigo. El primero calcula el descuento y pago total de pantalones dependiendo de su precio. El segundo indica si un estudiante está aprobado o reprobado basado en su calificación. El tercero determina si se permite o niega la entrada a un cine según la edad. El cuarto muestra la cantidad de días de un mes especificado. Y el quinto identifica el proveedor de camarón con el precio por kilo más bajo para el Señor Aguayon.
1. 1.- INDICAR SI UN ALUMNO ESTA APROBADO CALIFICACIÓN MAYOR O IGUAL DE 6 Y
REPROBADO EN CASO
2.- EN LA COMPRA DE UN PANTALÓN SI EL PRECIO ES MAYOR DE 100 HACER UN
DESCUENTO DE 20% Y SI VALE MENOS DE 100 PESOS SU DESCUENTO ES DE 10%
Autor:Martha DomínguezHernández
Inicio
Variables:Pantalón,Descuento,Pago:
NuméricoEntero
Escribir“Indicael preciodel pantalón”
LeerPantalón
Si Pantalón>=100 entonces
Escribir“20% de descuento”
Descuento=Pantalón*.20
Pago=Pantalón-Descuento
Si Pantalón<=100 entonces
PRUEBA DE ESCRITORIO
Si Pantalón=120
Descuento=Pantalón*.20
Descuento=120*.20
Descuento=24
Pago=Pantalón-Descuento
Pago=120-24
Pago=96
Si Pantalón=90
Descuento=Pantalón*.20
Descuento=90*.10
Descuento=9
Pago=Pantalón-Descuento
Pago=90-9
Pago=81
Autor:Martha DomínguezHernández
Inicio
Variables:Calificación:NuméricoEntero
Escribir“Indicala calificación”
LeerCalificación
Si Calificación>=6entonces
Escribir“Aprobado”
Si Calificación<=5entonces
Escribir“Reprobado”
Fin
PRUEBA DE ESCRITORIO
Si Calificación=6 entonces
“Aprobado”
Si Calificación= 5 entonces
“Reprobado”
2. Escribir“10% de descuento”
Descuento=Pantalón*.10
Pago=Pantalón-Descuento
Fin
3.-PROGRAMA QUE INDIQUE LA ENTRADA AL CINE SI LA PERSONA TIENE MAS DE 18
AÑOS , EN CASO CONTRARIA SE LE NIEGA LA ENTRADA
Autor:
Inicio
Variables:Edad:NuméricoEntero
Escribir“Indicala Edad”
LeerEdad
Si Edad>= 18 años
Escribir“ACEPTADO”
Si Edad<=17 añosentonces
Escribir“NEGAR”
Fin
PRUEBA DE ESCRITORIO
Si Edad=19 entonces
“Aceptado”
Si Edad=15 entonces
“Negar”
3. 4.-EL SEÑOR CUMPLEAÑERO DESEA QUE REALICES UN PROGRAMA EN DONDE LE
MENCIONE CUANTOS DIAS TIENE CADA MES DE ESTE AÑO 2015, POR EJEMPLO: SI DAS
DE ENTRADA EL MES DE ENERO, EL PROGRAMA DEBERA DE DECIRLE QUE TIENE
31 DIAS.
Autor:Martha DomínguezHernández
Inicio
Variables:Enero,Febrero,Marzo,Abril,Mayo,
Junio,Julio,Agosto,Septiembre,Octubre,
Noviembre,Diciembre,Mes:NuméricoEntero
Escribir“Dame el nombre del mes”
Escribir“IntroducirEnero”
LeerEnero
Escribir“IntroducirFebrero”
LeerFebrero
Escribir“IntroducirMarzo”
LeerMarzo
Escribir“IntroducirAbril”
LeerAbril
Escribir“IntroducirMayo”
LeerMayo
Escribir“IntroducirJunio”
LeerJunio
Escribir“IntroducirJulio”
LeerJulio
Escribir“IntroducirAgosto”
LeerAgosto
Escribir“IntroducirSeptiembre”
LeerSeptiembre
Escribir“IntroducirOctubre”
LeerOctubre
Escribir“IntroducirNoviembre”
LeerNoviembre
Escribir“IntroducirDiciembre”
LeerDiciembre
FIN
PRUEBA DE ESCRITORIO
4. 5.- EL SEÑOR AGUAYON VENDE MARISCOS Y TIENE 3 PROVEEDORES, EL PRIMER
PROVEEDOR LE OFRECE 100 KILOS DE CAMARON A $40.00 EL KILO, EL SEGUNDO
PROVEEDOR LE OFRECE 200 KILOS DE CAMARON A $60.00 EL KILO Y EL TERCER
PROVEEDOR LE OFRECE 150 KILOS DE CAMARON A $30.00 EL KILO.
EL PROGRAMA DEBERA DE INDICAR CUAL DE TODOS LOS PROVEEDORES LE OFRECE EL
MEJOR PRECIO POR KILO AL SEÑOR AGUAYON, TOMANDO LAS DECISIONES
NECESARIAS PAR
A COMPARAR EL MEJOR DE TODOS
AUTOR: MARTHA DOMINGUEZ HERNANDEZ
INICIO
VARIABLES:KILOS,PRECIO:NUMERICO REAL
Escribir“INDICAR CUAL DE TODOS LOS
PROVEEDORES LE OFRECE EL MEJOR
PRECIO POR KILO AL SEÑOR AGUAYON