Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Aylp - Act.5t2. Lopez Rubalcava
Aylp - Act.5t2. Lopez Rubalcava
Algoritmos y Lenguajes de
Programación
Algoritmo PROBLEMA_3
Repetir
N=N+1;
Leer NUM1
Leer NUM2
FinAlgoritmo
Algoritmo PROBLEMA_27
Escribir "======================================";
De Otro Modo:
Escribir "===== OPCION NO DISPONIBLE =====";
Fin Segun
FinAlgoritmo
Algoritmo PROBLEMA_28
Definir NUM1, TOTAL Como Real
Definir PALETAS, AGUA, NIEVE, ITALIANA, FRAPPE Como Entero
N <- 10
Definir OPC Como Entero
Mientras N==10 Hacer
Escribir '============== PRODUCTO A REGISTRAR ============='
Escribir ' --> AGUA.......$12...............(1)'
Escribir ' --> PALETA.....$10...............(2)'
Escribir ' --> NIEVE......$13...............(3)'
Escribir ' --> ITALIANA...$15...............(4)'
Escribir ' --> FRAPPE.....$18...............(5)'
Escribir ' --> REALIZAR CORTE DE COBRO......(6)'
Escribir '================================================'
Escribir 'OPCION #: '
Leer OPC
Según OPC Hacer
1:
Escribir 'CANTIDAD DE AGUAS REGALADAS: '
Leer AGUA
AGUA <- AGUA+1-1
Esperar Tecla
Limpiar Pantalla
2:
Escribir 'CANTIDAD DE PALETAS REGALADAS: '
Leer PALETAS
PALETAS <- PALETAS+1-1
Esperar Tecla
Limpiar Pantalla
3:
Escribir 'CANTIDAD DE NIEVE REGALADA: '
Leer NIEVE
NIEVE <- NIEVE+1-1
Esperar Tecla
Limpiar Pantalla
4:
Escribir 'CANTIDAD DE ITALIANAS REGALADAS: '
Leer ITALIANA
ITALIANA <- ITALIANA+1-1
Esperar Tecla
Limpiar Pantalla
5:
Escribir 'CANTIDAD DE FRAPPES REGALADOS: '
Leer FRAPPE
FRAPPE <- FRAPPE+1-1
Esperar Tecla
Limpiar Pantalla
6:
Limpiar Pantalla
Escribir '========== REGISTRO Y CORTE DE PRODUCTOS
=========='
Escribir ' ', NIEVE, ' NIEVES........TOTAL: $', NIEVE*13
Escribir ' ', PALETAS, ' PALETAS.......TOTAL: $', PALETAS*10
Escribir ' ', AGUA, ' AGUAS.........TOTAL: $', AGUA*12
Escribir ' ', FRAPPE, ' FRAPPES.......TOTAL: $', FRAPPE*18
Escribir ' ', ITALIANA, ' ITALIANAS.....TOTAL: $', ITALIANA*15
Escribir ' ____________________'
NUM1 <-
(NIVE*13)+(PALETAS*10)+(AGUA*12)+(FRAPPE*18)+(ITALIANA*15)
Escribir ' PAGAR:', NUM1
Escribir
Escribir
'==================================================='
Esperar Tecla
Limpiar Pantalla
De Otro Modo:
Escribir '===== OPCION NO DISPONIBLE ====='
Limpiar Pantalla
FinSegún
FinMientras
FinAlgoritmo