Está en la página 1de 5

Algoritmo Ejercicio 1

var
entero: c1, c2, c3
real: prom
inicio
leer (c1, c2, c3 )
prom = (c1+c2+c3)/3
si (prom >= 10.5) entonces
Escribir (APROBADO )
si_no
Escribir (DESAPROBADO )
fin_si
fin

algoritmo Ejercicio 2
var
entero: n1, n2, n3, n4, n5 ,menor
real: prom
inicio
leer (n1, n2, n3, n4, n5 )
menor=n1
si (n2<menor) entonces
menor=n2
fin_si
si (n3<menor) entonces
menor=n3
fin_si
si (n4<menor) entonces
menor=n4
fin_si
si (n5<menor) entonces
menor=n5
fin_si
prom = (n1 + n2 + n3 + n4 - menor) / 4
Mostrar (EL PROMEDIO ES: , prom , ' Y LA NOTA ELIMINADA ES : ',menor)
Fin

algoritmo Ejercicio 3
var
real: compra, pago
inicio
leer (compra )
si (compra > 1000) entonces
pago = compra - (compra*0.2)
Escribir (EL VALOR DE LA COMPRA ES: , pago )
si_no
Escribir (EL VALOR DE LA COMPRA ES: , compra )
fin_si
fin
algoritmo Ejercicio 4
var
entero: CantidadCamisas
real: compra, PagoPorCamisa
inicio
leer (CantidadCamisas, PagoPorCamisa )
compra = CantidadCamisas * PagoPorCamisa
si (CantidadCamisas >= 3) entonces
compra = compra (compra*0.2)
si_no
compra = compra (compra*0.1)
fin_si
Escribir (EL VALOR DE LA COMPRA ES: , compra )
Fin

algoritmo Ejercicio 5
var
real: precio
inicio
leer (precio )
si (precio > 15 000) entonces
pago = precio (precio*0.10)
si_no
pago = precio (precio*0.05)
fin_si
Escribir (EL PRECIO DEL AUTO ES: , pago )
Fin

algoritmo Ejercicio 6
var
entero: horas
real: SalarioSemanal
inicio
leer (horas )
si(horas > 40) entonces
SalarioSemanal = (40*16) + ((horas - 40) * 20)
si_no
SalarioSemanal = horas * 16
fin_si
Escribir (EL SALARIO SEMANAL ES: , SalarioSemanal )
Fin

algoritmo Ejercicio 7
var
entero: n1, n2
inicio
leer (n1, n2 )
si (n1 > n2) entonces
Escribir (EL MAYOR ES : , n1, ' Y EL MENOR ES ', n2 )
si_no
Escribir (EL MAYOR ES : , n2, ' Y EL MENOR ES ', n1)
fin_si
fin
algoritmo Ejercicio 8
var
entero: Edad1, Edad2
inicio
leer (Edad1, Edad2 )
si (Edad1 > Edad2) entonces
Escribir (ANTHONY ES EL MAYOR, CON UNA EDAD DE: , Edad1 )
si_no
Escribir (RUBN ES EL MAYOR, CON UNA EDAD DE: , Edad2 )
fin_si
fin

algoritmo Ejercicio 9
var
entero: opcion
real: cdolar, csol, total
inicio
mostrar (MENU )
mostrar (1. CONVERTIR DLARES A SOLES )
mostrar (2. CONVERTIR SOLES A DLARES )
mostrar (ELIJA LA OPCIN ( 1 2 ): )
leer (opcion )
si (opcion = 1) entonces
leer (cdolar )
total = cdolar * 2.80
Escribir (EL TOTAL ES: , total, NUEVOS SOLES )
si_no
leer (csol )
total = csol / 2.83
Escribir (EL TOTAL ES: , total, DLARES AMERICANOS )
fin_si
fin

algoritmo Ejercicio 10
var
entero: opcion
real: cdolar, csol, pcompra, pventa, total
inicio
mostrar (MENU )
mostrar (1. CONVERTIR DLARES A SOLES )
mostrar (2. CONVERTIR SOLES A DLARES )
mostrar (ELIJA LA OPCIN ( 1 2 ): )
leer (opcion )
si (opcion = 1) entonces
leer (cdolar, pventa )
total = cdolar * pventa
Escribir (EL TOTAL ES: , total, NUEVOS SOLES )
si_no
leer (csol , pcompra)
total = csol / pcompra
Escribir (EL TOTAL ES: , total, DLARES AMERICANOS )
fin_si
fin

También podría gustarte