Guia2r
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1) Mosca Feliz<br />
Proceso mosca_feliz<br />
Definir n_personas,total_platillo Como Real;//Definimos variables tupo<br />
numéricas<br />
Escribir "ESCRIBA LA CANTIDAD DE PLATILLOS A VENDER";<br />
Leer n_personas;//lee la cantidad de personas<br />
Si n_personas>=1 y n_personas
Escribir "[1] TIPO GOLD";<br />
Escribir "[2] TIPO SILVER";<br />
leer tipo;//lee el tipo de uva<br />
Segun tipo Hacer//opciones que realizará el algoritmo en caso de seleccionar<br />
una acción<br />
1:<br />
Escribir "USTED HA SELECCIONADO TIPO GOLD";<br />
tipo_des
Escribir "HA SELECCIONADO UNA OPCION INCORRECTA";//exepción de<br />
no<br />
seleccionar ningun tipo<br />
FinSegun<br />
Limpiar Pantalla;//limpia la pantalla<br />
Escribir "CANTIDAD DE KILOS A VENDER:",cantidad;<br />
Escribir "EL VALOR INICIAL POR KILO DE UVAS ES DE $:",valor_kilo;//el<br />
valor que cuesta cada kilo<br />
Escribir "TIPO DE UVA: ",tipo_des;//descripción del tipo de uva<br />
Escribir "TAMAÑO: ",tamano_des;//descripción del tamaño de uva<br />
Si tipo=1 Entonces<br />
carga
total_alumno=30 Entonces<br />
total_alumno
3:<br />
TC
definir nombre,carta como caracter;//variables tipo<br />
caracter<br />
Definir edad,promedio,beca Como Real;//variables tipos<br />
numéricos<br />
Escribir "ESCRIBA EL NOMBRE DEL ALUMNO";<br />
Leer nombre;<br />
Escribir "ESCRIBA LA EDAD DEL ALUMNO";<br />
Leer edad;<br />
Escribir "ESCRIBA EL PROMEDIO DEL ALUMNO";<br />
leer promedio;<br />
Si (edad>=18) Entonces//acciones que se harán si el alumno<br />
es mayor de edad<br />
Si (promedio>=9) Entonces<br />
beca=7.5) Entonces<br />
beca=6) Entonces<br />
beca
eca