Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Algoritmo EJERCICIO 1
escribir 'ingresa la primera calificación'
leer calif1
escribir 'ingrea la segunda calificación'
leer calif2
escribir 'ingrese la tercera calificación'
leer calif3
PROMEDIO = (calif1+calif2+calif3)/3
escribir 'Su promedio es:', PROMEDIO
FinAlgoritmo
EJERCICIO 2
Desarrolla un programa que lea la cantidad de producto a compra y el precio y determine el
importe a pagar.
Algoritmo EJERCICIO 2
Escribir 'Ingresas el precio del producto'
Leer PRECIO
Escribir 'Ingresa la cantidad'
Leer CANTIDAD
IMPORTE = PRECIO*CANTIDAD
Escribir 'Su importe a pagar es:' , IMPORTE
FinAlgoritmo
EJERCICIO 3
Desarrollar un programa que lea cantidad, precio, calcule el importe a pagar, lea el pago y
determine cual será el cambio.
Algoritmo EJERCICIO 3
Escribir 'Ingresas el precio del producto'
Leer PRECIO
Escribir 'Ingresa la cantidad'
Leer CANTIDAD
IMPORTE = PRECIO*CANTIDAD
Escribir 'Su importe a pagar es:' , IMPORTE
Escribir 'Ingrese su pago'
Leer PAGO
CAMBIO = PAGO-IMPORTE
Escribir 'su cambio es:' , CAMBIO
FinAlgoritmo
EJERCICIO 4
Desarrollar un programa que lea cantidad, precio, calcule el importe a pagar, lea el pago y
determine cual será el cambio y si el importe es igual o mayor a 100 tenga un descuento del 25%.
Algoritmo EJERCICIO 4
Escribir 'Ingresas el precio del producto'
Leer PRECIO
Escribir 'Ingresa la cantidad'
Leer CANTIDAD
IMPORTE = PRECIO*CANTIDAD
Escribir 'Su importe a pagar es:' , IMPORTE
si (IMPORTE >= 100)
Entonces
Escribir 'Tienes un descuento de 25%'
IMPORTE = IMPORTE-(IMPORTE*0.25)
FinSi
Escribir 'Ingrese su pago'
Leer PAGO
CAMBIO = PAGO-IMPORTE
Escribir 'su cambio es:' , CAMBIO
FinAlgoritmo