Professional Documents
Culture Documents
En una empresa de viajes se ingresan de una en una las ventas del día, para ello se
carga el importe del viaje, y la categoría de la persona (1-Menor, 2-Adulto, 3-Jubilado.
Se pide: Hacer un descuento del 50% a los menores, 25% a los jubilados y nada a los
adultos. Mostrar por pantalla el Nuevo importe.
INICIO
Escribir “Ingrese importe del pasaje:”
LEER importe
Escribir “Ingrese la categoría 1 – Menor / 2 – Adulto / 3 – Jubilado “
LEER CATE
SI CATE = 1 ENTONCES
NuevoImporte = importe * 0.5
SINO
SI CATE = 2 entonces
NuevoImporte = importe
SINO
NuevoImporte = importe * 0.75
FINSI
FINSI
Escribir “El nuevo importe es: “, NuevoImporte
Clase 5
-1-
FIN
LEER SI ENTONCES SINO
Importe Cate Cate=1 SI ENTOCES SINO
Escribir
NuevoImporte
Cate=2 NuevoImporte NuevoImporte NuevoImporte
Importe*0.5
Importe Importe*0.75
100 2 2=1 - 2=2 100 - 100
100 1 1=1 100*0.5=50 - - - 50
100 3 3=1 - 3=2 - 100*0.75=75 75
ENTONCES SINO
LEER ENTONCES SINO
EDAD
SI ENTONCES SINO
edad<=21 Escribir SI
Escribir SI ENTONCES SINO
Menores edad<=35 Escribir SI
Adultos Jóvenes edad<=45 Escribir Escribir
Adultos Grandes edad<=60
Mayores Respetable
Clase 5
-2-
En una empresa se le otorga aumento de sueldo a todos sus empleados. El aumento es
en forma porcentual y se determina en base al sueldo actual: de cada empleado
siguiendo una lista: 10% a todos los que ganan menos de 1000, 7% a todos los que
ganan entre 1001 y 1500, 5% a todos los que ganan entre 1501 y 2000, 3% a todos los
que ganan más de 2000. Se debe calcular y mostrar el nuevo sueldo de cada empleado.
INICIO
Escribir “Ingrese el sueldo actual:”
LEER sueldo
SI sueldo <= 1000 ENTONCES
NImporte = importe * 1.1
SINO
SI sueldo <= 1500 entonces
NImporte = importe * 1.07
SINO
SI sueldo <= 2000 entonces
NImporte = importe * 1.05
SINO
NImporte = importe * 1.03
FINSI
FINSI
FINSI
Escribir “El nuevo importe es : “,NImporte
FIN
ENTONCES SINO
ENTONCES SINO
Escribir SI
sueldo Nimporte SI ENTONCES SINO Escribir
sueldo<=1000 Nimporte SI
importe*1,1 sueldo<=1500 Nimporte Nimporte Nimporte
importe*1,07 sueldo<=2000
importe*1,05 importe*1,03
Clase 5
-3-
INICIO
Escribir “Ingrese Nombre del cliente:”
LEER nombre
Escribir “Ingrese el precio:”
LEER precio
Escribir “Ingrese cantidad de unidades”
LEER cantidad
Importe = precio * cantidad
SI importe > 500 ENTONCES
Importe = importe * 0.9
SINO
SI cantidad > 20 entonces
Importe = importe * 0.95
FINSI
FINSI
Escribir nombre, precio, cantidad, importe
FIN
importe ENTONCES
SI Escribir nombre,
precio*cantida importe SI
nombre precio cantidad importe>500 precio,cantidad,importe
d importe*0,9 cantidad>20
importe
importe*0,95
INICIO
Escribir “El 1º numero:”
LEER A
Escribir “El 2º numero:”
LEER B
Escribir “El 3º numero:”
LEER C
SI A < B ENTONCES
Menor = A
SINO
Menor = B
FINSI
SI C < Menor ENTONCES
Menor = C
FINSI
Escribir “El numero mas chico es “,Menor
FIN
Clase 5
-4-
Escribir
A B C A>B MENOR=A MENOR=B C<MENOR MENOR=C MENOR
5 8 6 5<8 5 - 6<5 - 5
8 3 1 8<3 - 3 1<3 1 1
9 2 6 9<2 - 2 6<2 - 2
INICIO
Escribir “El 1º Lado:”
LEER L1
Escribir “El 2º Lado:”
LEER L2
Escribir “El 3º Lado:”
LEER L3
SI L1 = L2 Y L1 = L3 Y L2 = L3 ENTONCES
Escribir “Triangulo Equilátero....”
SINO
SI L1 <> L2 Y L1 <> L3 Y L2 <> L3 ENTONCES
Escribir “Triangulo Escaleno....”
SINO
Escribir “Triangulo Isósceles....”
FINSI
FINSI
FIN
Clase 5
-5-