Tarea de programacion 3 Walter Monterroso clave 25 y Andrea Rodas Perez clave 31 3ero basico seccion B

Páginas: 4 (956 palabras) Publicado: 23 de diciembre de 2015
LICEO GUATEMALA
DEPARTAMENTO DE CIENCIA Y TECNOLOGÍA
Tecnología 2015, Tercero BásicoClaudia Prera

Respuestas, Hoja de trabajo # 1

Algoritmo positivo;
Variables x
Inicio
Escribir: “Ingrese un valor”;
Leer x;
Si x > 0;
Escribir:“Positivo”;
Si x < 0;
Escribir: “Negativo”;
Sino;
Escribir: “Es 0”;
Fin.


OPCIÓN # 1

Algoritmo media;
Variables x, y , m
Inicio
Escribir: “Ingrese un número (entero)”;
Leer x;
Escribir: “Ingreseun número (entero)”;
Leer y;
Si x > 0 y y > 0;
m = (x + y)/2;
Escribir: “La media aritmética es: “, m;
sino
“Fin del programa”;
Fin.

OPCIÓN # 2


Algoritmo media;
Variables x, y , mInicio
Escribir: “Ingrese un número (entero)”;
Leer x;
Si x <= 0;
Escribir: “Error”
Escribir: “Ingrese un número (entero)”;
Leer x;
Escribir: “Ingrese un número (entero)”;
Leer y;
Si y <= 0;Escribir: “Error”
Escribir: “Ingrese un número (entero)”;
Leer y;
m = (x + y)/2;
Escribir: “La media aritmética es: “, m;
Fin.



Algoritmo mes;
Variable mes
Inicio
Escribir: “Ingrese elnúmero de mes que desea consultar”;
Leer mes;
Según_sea mes;
1: escribir: “Enero”;
2: escribir: “Febrero”;
3: escribir: “Marzo”;
4: escribir: “Abril”;
5: escribir: “Mayo”;
6: escribir:“Junio”;
7: escribir: “Julio”;
8: escribir: “Agosto”;
9: escribir: “Septiembre”;
10: escribir: “Octubre”;
11: escribir: “Noviembre”;
12: escribir: “Diciembre”;
Sino
Escribir: “Error, elnúmero no corresponde a ningún mes”;
Fin.






Algoritmo números;
Variables n1, n2, n3
Inicio
Escribir: “Ingrese un número”;
Leer n1;
Escribir: “Ingrese un número”;
Leer n2;
Escribir: “Ingrese unnúmero”;
Leer n3;
Si n1 > n2 y n1 > n3;
Escribir: “El mayor de los tres números es:”, n1;
Si n2 > n1 y n2 > n3;
Escribir: “El mayor de los tres números es:”, n2;
Sino;
Escribir:...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Programacion clave
  • San andrea clave
  • Claves De Gta San Andreas
  • claves de GTA san andreas
  • claves gta san andreas
  • Claves De Gta San Andreas
  • claves gta san andreas
  • gta san andreas claves

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS