Está en la página 1de 5

UNIVERSIDAD TECNOLOGICA DE CIUDAD JUAREZ

INGENIERIA EN MANTENIMIENTO INDUSTRIAL

ASIGNATURA: PRINCIPIOS DE PROGRAMACION


CUATRIMESTRE: SEPTIEMBRE-DICIEMBRE 2023

PORTAFOLIO DE EVIDENCIA PSEINT

NOMBRE DEL PROFESOR: ESAU REYES DE LA RONDA


NOMBRE DEL ALUMNO: MARISSE ABRIL DELVAL RODRIGUEZ
MATRICULA: 22210515
GRUPO: MIM44
EJERCICIO 1
Desarrollar un programa que lea tres calificaciones y calcule el promedio.

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

También podría gustarte