Está en la página 1de 10

YAMILET MOREIRA

Universidad Politécnica Salesiana

Tema: “Proyecto Integrador de Programación

Programación Grupo #2
Planteamiento del problema

Hacer un, menú con todo lo aprendido, eligiendo un


producto diferente, que puede cambiar de seleccionador
de preguntas, a vender productos o sumar en distintas
formas, donde se manifiesta diferente tipos de algoritmo
Que comentan sobre los conjuntos de sumar y multiplicar.
Como encontrar la solución a estos problemas. Dividir etc.
Algoritmo Trabajo_final

Definir nombre Como Caracter


Definir n1,n2,n3,n4,n5 Como Real
Definir mat1, mat2, mat3, mat4, mat5 Como Caracter
Definir Opcion1, Opcion2 Como Entero

Escribir "MENU DE OPCIONES"


Escribir "Ingrese el Nombre"
leer Nombre

Escribir "Selecciona una Opción presione 1 : "


Leer Opciones
Si (OPCION1>1) O (OPCION1<1) Entonces
Escribir "ESTA SIENDO REDIRIGIDO A LA PAGINA PRINCIPAL..."
SiNo
Escribir "<SI DESEA CONTINUAR CON LAS PREGUNTAS CUALQUIER TECLA>"
Esperar Tecla
Borrar Pantalla
FinSi

Escribir
"++++++++++++++++++++++++++++++++++++++++++++++++++"
Escribir
"++++++++++++++++++++++++++++++++++++++++++++++++++"
Escribir "CATALOGO DE PRODUCTO"
Escribir
"++++++++++++++++++++++++++++++++++++++++++++++++++"
Escribir "PORFAVOR ELIJA UN PRODUCTO"
Escribir "++++++++++++++++++++++++++++++++++++++++++++++++++"
Escribir "1. POLLO FRITO "
Escribir "//////////////////////////////////////////////////"
Escribir "Seleccione el articulo "
Leer producto
Si (producto=1) Entonces
Definir CANTIDAD1 Como Entero
Definir PRODUCTO1,SUBTOTAL1 Como Real
Definir MED1 Como Caracter
PRODUCTO1<- 2.35
MED1 <- "POLLO FRITO"
Escribir "PRODUCTO: ",MED1
Escribir "CANTIDAD POR ADQUIRIR: " Sin Saltar
Leer CANTIDAD1
Escribir "PRECIO POR UNIDAD: $",PRODUCTO1
Escribir "******************************"
Escribir "CALCULANDO SUBTOTAL..."
Escribir " PORFAVOR ESPERE..."
Escribir "******************************"
SUBTOTAL1 <- (PRODUCTO1*CANTIDAD1)
Escribir 'Subtotal: $',SUBTOTAL1
FinSi

Escribir "******************************************************"
Escribir "¿DESEA PASAR AL PROCESO DE FACTURACION?"
Escribir
"******************************************************"
Escribir "SI.- PRESIONE 1"
Escribir "NO.- PRESIONE OTRA TECLA"
Escribir "******************************************************"
Esperar tecla
Escribir " Seleccionar tus opciones"
Leer OPC
Escribir "A. El valor del área de un Triángulo, dada la base y la altura."
Escribir "B. El valor de la Base de un Triángulo, dada la altura y el área."
Escribir "C. El valor de la altura de un Triángulo, dada la base y la altura."
Escribir "D. El valor del promedio de las calificaciones es",proyecto
Escribir "E. el valor de los articulos en efectivo"
Segun OPC Hacer
"A":
Escribir "Ingrese Base : "
Leer Base
Escribir "Ingrese Altura :"
Leer Altura
Area = (Base * Altura)/2
Escribir "El área es : ", Area
"B":
Escribir "Ingrese Altura : "
Leer Altura
Escribir "Ingrese Área :"
Leer Area
Base = (Area * 2)/Altura
Escribir "La Base es: ", Base
"C":
Escribir "Ingrese Base : "
Leer Base
Escribir "Ingrese Área :"
Leer Área
Altura = (Área * 2) / Base
Escribir "La altura es: ", Altura
"D":
Escribir " Ingrese el nombre de la materia 1: "
leer mat1
Escribir " Ingrese la calificación mat1: "
leer n1
Escribir " Ingrese el nombre de la materia 2:"
leer mat2
Escribir " Ingrese la calificación mat2:"
leer n2
Escribir " Ingrese el nombre de la materia 3:"
leer mat3
Escribir " Ingrese la calificación mat3:"
leer n3
Escribir " Ingrese el nombre de la materia 4:"
leer mat4
Escribir " Ingrese la calificación mat 4:"
leer n4
Escribir " Ingrese el nombre de la materia 5:"
leer mat5
Escribir " Ingrese la calificación mat 5:"
leer n5
promedio<-(n1+n2+n3+n4+n5)/5

Escribir "La nota de ",mat1," fue: ",n1


Escribir "La nota de ",mat2," fue: ",n2
Escribir "La nota de ",mat3," fue: ",n3
Escribir "La nota de ",mat4," fue: ",n4
Escribir "La nota de ",mat5," fue: ",n5
Escribir "El promedio de notas es: ",promedio
Si(promedio>=3) Entonces
Escribir "El estudiante ganó la materia"
SiNo
Escribir "El estudiante perdió la materia"
FinSi
"E":
Escribir " Ingrese la cantidad de articulos comprados "
Leer art
Si art < 3 Entonces
Escribir "Pagar con Efectivo"
SiNo
Escribir "Pagar con Tarjeta"
FinSi
De Otro Modo:
Escribir "OPCIÓN INCORRECTA PRESIONE 1"
Escribir " OPCION CORRECTA PRESIONE 2"
Fin Segun
FinAlgoritmo

También podría gustarte