5 seudocódigos y prueba de escritorio

5
Autor: Martha Domínguez Hernández Inicio Variables: Calificación: Numérico Entero Escribir “Indica la calificación” Leer Calificación Si Calificación>=6 entonces Escribir “Aprobado” Si Calificación<=5 entonces Escribir “Reprobado” Fin PRUEBA DE ESCRITORIO Si Calificación=6 entonces “Aprobado” Si Calificación= 5 entonces “Reprobado” 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ínguez Hernández Inicio Variables: Pantalón, Descuento, Pago: Numérico Entero Escribir “Indica el precio del pantalón” Leer Pantalón 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

Transcript of 5 seudocódigos y prueba de escritorio

Page 1: 5 seudocódigos y prueba de escritorio

Autor: Martha Domínguez HernándezInicio

Variables: Calificación: Numérico Entero

Escribir “Indica la calificación”

Leer Calificación

Si Calificación>=6 entonces

Escribir “Aprobado”

Si Calificación<=5 entonces

Escribir “Reprobado”

Fin

PRUEBA DE ESCRITORIO

Si Calificación=6 entonces“Aprobado”Si Calificación= 5 entonces“Reprobado”

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ínguez Hernández

Inicio

Variables: Pantalón, Descuento, Pago: Numérico Entero

Escribir “Indica el precio del pantalón”

Leer Pantalón

Si Pantalón>=100 entonces

Escribir “20% de descuento”

Descuento= Pantalón*.20

Pago=Pantalón-Descuento

Si Pantalón<=100 entonces

Escribir “10% de descuento”

PRUEBA DE ESCRITORIO

Si Pantalón=120Descuento=Pantalón*.20Descuento=120*.20Descuento=24Pago=Pantalón-DescuentoPago=120-24Pago=96

Si Pantalón=90Descuento=Pantalón*.20Descuento=90*.10Descuento=9Pago=Pantalón-DescuentoPago=90-9Pago=81

Page 2: 5 seudocódigos y prueba de escritorio

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érico Entero

Escribir “Indica la Edad”

Leer Edad

Si Edad>= 18 años

Escribir “ACEPTADO”

Si Edad<=17 años entonces

Escribir “NEGAR”

Fin

PRUEBA DE ESCRITORIOSi Edad=19 entonces“Aceptado”

Si Edad=15 entonces“Negar”

4.-EL SEÑOR CUMPLEAÑERO DESEA QUE REALICES UN PROGRAMA EN DONDE LE

Page 3: 5 seudocódigos y prueba de escritorio

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ínguez HernándezInicioVariables: Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre, Mes: Numérico EnteroEscribir “Dame el nombre del mes”Escribir “Introducir Enero”Leer EneroEscribir “Introducir Febrero”Leer FebreroEscribir “Introducir Marzo”Leer MarzoEscribir “Introducir Abril”Leer AbrilEscribir “Introducir Mayo”Leer MayoEscribir “Introducir Junio”Leer JunioEscribir “Introducir Julio”Leer JulioEscribir “Introducir Agosto”Leer AgostoEscribir “Introducir Septiembre”Leer SeptiembreEscribir “Introducir Octubre”Leer OctubreEscribir “Introducir Noviembre”Leer NoviembreEscribir “Introducir Diciembre”Leer Diciembre

FIN

PRUEBA DE ESCRITORIO

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

Page 4: 5 seudocódigos y prueba de escritorio

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