


Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!



PROBLEMA N°1. En una tienda se desea realizar el total de un producto ingresando la cantidad y el precio. Proceso EJERCICIO_ Definir pre, total Como Real Definir cantidad Como Entero Escribir "Ingrese el precio del producto" leer pre Escribir "Ingrese la cantidad que compro" leer cantidad total <- pre * cantidad Escribir "EL TOTAL A PAGAR ES: ", total FinProceso PROBLEMA N°2. Se desea obtener el promedio sabiendo que el alumno posee 5 notas. Proceso EJERCICIO_2_FORMA_N° Definir nota1, nota2, nota3, nota4, nota5, prom Como Real Escribir "Ingrese las 5 notas del alumno" Leer nota Leer nota Leer nota Leer nota Leer nota prom <- (nota1 + nota2 + nota3 + nota4 + nota5) / 5 Escribir "EL PROMEDIO DEL ALUMNO ES: ", prom
PROBLEMA N°4. Ingrese un número y visualice su mitad. Proceso EJERCICIO_ Definir num Como Entero Escribir "Ingrese un número" Leer num mitad <- num / 2 Escribir "LA MITAD DEL NÚMERO ES: ", mitad FinProceso PROBLEMA N°5. Ingrese un número y visualice dicho número incrementado en un 50%. Proceso EJERICCIO_ Definir num Como Entero Definir subtotal, total Como Real Escribir "Ingrese un número" Leer num subtotal <- num * ( 50 / 100 ) total <- subtotal + num Escribir "EL 50% DEL NÚMERO ES: ", subtotal Escribir "EL NÚMERO INCREMENTADO EN UN 50% ES: ", total